mirror of
https://github.com/sheumann/hush.git
synced 2024-06-06 17:29:42 +00:00
hush: conditionalize print_escaped() on EXPORT || TRAP
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
parent
4471969db2
commit
41ade05cac
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user