projects
/
oweals
/
busybox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4471969
)
hush: conditionalize print_escaped() on EXPORT || TRAP
author
Denys Vlasenko
<vda.linux@googlemail.com>
Sun, 8 Jan 2017 17:56:24 +0000
(18:56 +0100)
committer
Denys Vlasenko
<vda.linux@googlemail.com>
Sun, 8 Jan 2017 17:56:24 +0000
(18:56 +0100)
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
shell/hush.c
patch
|
blob
|
history
diff --git
a/shell/hush.c
b/shell/hush.c
index 3050aeb8e65116ea59c6a760f48564608b4a24eb..9b62d5c0de8d2bdbd61e89ce1d451c135577375b 100644
(file)
--- a/
shell/hush.c
+++ b/
shell/hush.c
@@
-8936,6
+8936,7
@@
static int FAST_FUNC builtin_exit(char **argv)
hush_exit(xatoi(argv[0]) & 0xff);
}
+#if ENABLE_HUSH_EXPORT || ENABLE_HUSH_TRAP
static void print_escaped(const char *s)
{
if (*s == '\'')
@@
-8954,6
+8955,7
@@
static void print_escaped(const char *s)
putchar('"');
} while (*s);
}
+#endif
#if ENABLE_HUSH_EXPORT || ENABLE_HUSH_LOCAL
# if !ENABLE_HUSH_LOCAL