aboutsummaryrefslogtreecommitdiff
path: root/shell
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2013-03-17 14:25:22 +0100
committerDenys Vlasenko <vda.linux@googlemail.com>2013-03-17 14:25:22 +0100
commit091f831424e8aa2052484ef07f0225f5405d086f (patch)
tree0f678b02f7ff2d1acc2066344d2784efe3df8506 /shell
parent88b532d59af81f3b788864b2d6d42e1f86bc8de0 (diff)
downloadbusybox-091f831424e8aa2052484ef07f0225f5405d086f.tar.gz
ash: add comment about failures in source builtin. No code changes.
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'shell')
-rw-r--r--shell/ash.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/shell/ash.c b/shell/ash.c
index fbbdb06b0..edcb7c028 100644
--- a/shell/ash.c
+++ b/shell/ash.c
@@ -12258,6 +12258,9 @@ dotcmd(int argc, char **argv)
/* "false; . empty_file; echo $?" should print 0, not 1: */
exitstatus = 0;
+ /* This aborts if file isn't found, which is POSIXly correct.
+ * bash returns exitcode 1 instead.
+ */
fullname = find_dot_file(argv[1]);
argv += 2;
@@ -12269,6 +12272,9 @@ dotcmd(int argc, char **argv)
shellparam.p = argv;
};
+ /* This aborts if file can't be opened, which is POSIXly correct.
+ * bash returns exitcode 1 instead.
+ */
setinputfile(fullname, INPUT_PUSH_FILE);
commandname = fullname;
cmdloop(0);