summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJakob Kaivo <jkk@ung.org>2020-10-06 16:47:29 -0400
committerJakob Kaivo <jkk@ung.org>2020-10-06 16:47:29 -0400
commit83d569d4abda4e925581d433c5d8127e29358579 (patch)
tree474d7fb27a9a93a3b34069a38604badc0cf6254f
parentaf043921d728f6703763f544e63a1654bdabb591 (diff)
split false into its own (trivial) repo
-rw-r--r--.gitignore1
-rw-r--r--.gitmodules4
-rw-r--r--Makefile2
m---------false0
-rw-r--r--false.c9
5 files changed, 8 insertions, 8 deletions
diff --git a/.gitignore b/.gitignore
index dd0a122..e0b05b5 100644
--- a/.gitignore
+++ b/.gitignore
@@ -6,7 +6,6 @@ alias
bg
cd
command
-false
fc
fg
getopts
diff --git a/.gitmodules b/.gitmodules
index 5e4c016..425c331 100644
--- a/.gitmodules
+++ b/.gitmodules
@@ -1,3 +1,7 @@
[submodule "kill"]
path = kill
url = ../kill/
+
+[submodule "false"]
+ path = false
+ url = ../false/
diff --git a/Makefile b/Makefile
index 15f9aa0..c711c60 100644
--- a/Makefile
+++ b/Makefile
@@ -21,7 +21,7 @@ OBJECTS=alias.o bg.o builtins.o cd.o command.o false.o fc.o fg.o getopts.o \
unset.o \
interactive.o parse.o init.o getopt.o \
sh.tab.o sh.yy.o
-BUILTINS=alias bg cd command false fc fg getopts jobs newgrp pwd read \
+BUILTINS=alias bg cd command fc fg getopts jobs newgrp pwd read \
true ulimit umask unalias wait
all: $(UTILITY) $(L10N) $(BUILTINS)
diff --git a/false b/false
new file mode 160000
+Subproject 08e82e432d1c35c1a45a36406d8e11461958beb
diff --git a/false.c b/false.c
index 0997f7d..bc3528e 100644
--- a/false.c
+++ b/false.c
@@ -1,7 +1,7 @@
/*
* UNG's Not GNU
*
- * Copyright (c) 2011-2017, Jakob Kaivo <jkk@ung.org>
+ * Copyright (c) 2011-2020, Jakob Kaivo <jkk@ung.org>
*
* Permission to use, copy, modify, and/or distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
@@ -17,8 +17,5 @@
*
*/
-int false_main(int argc, char *argv[])
-{
- (void)argc; (void)argv;
- return 1;
-}
+#define main false_main
+#include "false/false.c"