diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2012-04-29 14:11:53 +0200 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2012-04-30 13:08:55 +0200 |
commit | f034ed2044c8cf58a67984da1f6d096d92093cdd (patch) | |
tree | dea2b3554f48f5a27eeb120aa96f1b251499b2ef /defaultenv | |
parent | cace82b597f0e4691a808fec737b86753e49ee5c (diff) | |
download | barebox-f034ed2044c8cf58a67984da1f6d096d92093cdd.tar.gz barebox-f034ed2044c8cf58a67984da1f6d096d92093cdd.tar.xz |
hush: Fix globbing
hush has a long standing and anoying glob bug. hush expands wildcards
during parsing of the script or command stream. When the command stream
begins to execute the wildcards are already expanded which leads to:
mkdir /tmp
cd /tmp
mkdir foo; ls *
ls: *: No such file or directory
To fix this expand wildcards right before executing the command. Since
'for' loops are not executed in commands, we have to keep the old behaviour
in here so that 'for i in *' still works.
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'defaultenv')
0 files changed, 0 insertions, 0 deletions