diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2017-01-08 18:56:24 +0100 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2017-01-08 18:56:24 +0100 |
commit | 41ade05cacd61a42e348f21aeddb7b12b0ad5d3d (patch) | |
tree | 707daaa8a9887c6c9e56baaf13d597dcbf541b55 /shell | |
parent | 4471969db2102df9c97582b6577c7505caf64a34 (diff) | |
download | busybox-w32-41ade05cacd61a42e348f21aeddb7b12b0ad5d3d.tar.gz busybox-w32-41ade05cacd61a42e348f21aeddb7b12b0ad5d3d.tar.bz2 busybox-w32-41ade05cacd61a42e348f21aeddb7b12b0ad5d3d.zip |
hush: conditionalize print_escaped() on EXPORT || TRAP
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'shell')
-rw-r--r-- | shell/hush.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/shell/hush.c b/shell/hush.c index 3050aeb8e..9b62d5c0d 100644 --- a/shell/hush.c +++ b/shell/hush.c | |||
@@ -8936,6 +8936,7 @@ static int FAST_FUNC builtin_exit(char **argv) | |||
8936 | hush_exit(xatoi(argv[0]) & 0xff); | 8936 | hush_exit(xatoi(argv[0]) & 0xff); |
8937 | } | 8937 | } |
8938 | 8938 | ||
8939 | #if ENABLE_HUSH_EXPORT || ENABLE_HUSH_TRAP | ||
8939 | static void print_escaped(const char *s) | 8940 | static void print_escaped(const char *s) |
8940 | { | 8941 | { |
8941 | if (*s == '\'') | 8942 | if (*s == '\'') |
@@ -8954,6 +8955,7 @@ static void print_escaped(const char *s) | |||
8954 | putchar('"'); | 8955 | putchar('"'); |
8955 | } while (*s); | 8956 | } while (*s); |
8956 | } | 8957 | } |
8958 | #endif | ||
8957 | 8959 | ||
8958 | #if ENABLE_HUSH_EXPORT || ENABLE_HUSH_LOCAL | 8960 | #if ENABLE_HUSH_EXPORT || ENABLE_HUSH_LOCAL |
8959 | # if !ENABLE_HUSH_LOCAL | 8961 | # if !ENABLE_HUSH_LOCAL |