diff options
Diffstat (limited to 'shell')
-rw-r--r-- | shell/ash.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/shell/ash.c b/shell/ash.c index b707d00d0..f3a2c6952 100644 --- a/shell/ash.c +++ b/shell/ash.c | |||
@@ -13042,6 +13042,7 @@ expandstr(const char *ps, int syntax_type) | |||
13042 | { | 13042 | { |
13043 | union node n; | 13043 | union node n; |
13044 | int saveprompt; | 13044 | int saveprompt; |
13045 | struct parsefile *file_stop = g_parsefile; | ||
13045 | 13046 | ||
13046 | /* XXX Fix (char *) cast. */ | 13047 | /* XXX Fix (char *) cast. */ |
13047 | setinputstring((char *)ps); | 13048 | setinputstring((char *)ps); |
@@ -13068,7 +13069,8 @@ expandstr(const char *ps, int syntax_type) | |||
13068 | 13069 | ||
13069 | doprompt = saveprompt; | 13070 | doprompt = saveprompt; |
13070 | 13071 | ||
13071 | popfile(); | 13072 | /* Try: PS1='`xxx(`' */ |
13073 | unwindfiles(file_stop); | ||
13072 | 13074 | ||
13073 | n.narg.type = NARG; | 13075 | n.narg.type = NARG; |
13074 | n.narg.next = NULL; | 13076 | n.narg.next = NULL; |