diff options
| -rw-r--r-- | .gitignore | 1 | ||||
| -rw-r--r-- | .gitmodules | 3 | ||||
| -rw-r--r-- | Makefile | 2 | ||||
| m--------- | true | 0 | ||||
| -rw-r--r-- | true.c | 7 |
5 files changed, 6 insertions, 7 deletions
@@ -14,7 +14,6 @@ newgrp pwd read sh -true ulimit umask unalias diff --git a/.gitmodules b/.gitmodules index 425c331..9fad81f 100644 --- a/.gitmodules +++ b/.gitmodules @@ -5,3 +5,6 @@ [submodule "false"] path = false url = ../false/ +[submodule "true"] + path = true + url = ../true/ @@ -22,7 +22,7 @@ OBJECTS=alias.o bg.o builtins.o cd.o command.o false.o fc.o fg.o getopts.o \ interactive.o parse.o init.o getopt.o \ sh.tab.o sh.yy.o BUILTINS=alias bg cd command fc fg getopts jobs newgrp pwd read \ - true ulimit umask unalias wait + ulimit umask unalias wait all: $(UTILITY) $(L10N) $(BUILTINS) diff --git a/true b/true new file mode 160000 +Subproject 5970d06b2c1bdc9da65d890ab9e5f95aaae1152 @@ -17,8 +17,5 @@ * */ -int true_main(int argc, char *argv[]) -{ - (void)argc; (void)argv; - return 0; -} +#define main true_main +#include "true/true.c" |
