[Bug 649] ash/hush do not expand paths before setting up redirection

bugzilla at busybox.net bugzilla at busybox.net
Tue Oct 6 16:01:52 UTC 2009


https://bugs.busybox.net/show_bug.cgi?id=649





--- Comment #1 from Denys Vlasenko <vda.linux at googlemail.com>  2009-10-06 16:01:50 UTC ---
It's a bashism. bash does it only is you run it as "bash"

# bash -c 'rm -rf www; mkdir www; touch www/test; echo Hey >ww*/test; echo $?'
0

# sh -c 'rm -rf www; mkdir www; touch www/test; echo Hey >ww*/test; echo $?'
sh: ww*/test: No such file or directory
1

ash and hush do the same as "bash as sh":

# ash -c 'rm -rf www; mkdir www; touch www/test; echo Hey >ww*/test; echo $?'
ash: can't create ww*/test: nonexistent directory
1

# hush -c 'rm -rf www; mkdir www; touch www/test; echo Hey >ww*/test; echo $?'
hush: can't open 'ww*/test': No such file or directory
1


-- 
Configure bugmail: https://bugs.busybox.net/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.


More information about the busybox-cvs mailing list