[PATCH] hush - parameter expansion

Denys Vlasenko vda.linux at googlemail.com
Sun Apr 26 11:26:28 UTC 2009


On Saturday 25 April 2009 21:10, Bayram Kurumahmut wrote:
> 
> Fix segmentation fault occurred when there is no match between parameter and pattern
> 
> For example,
> 
> it was failing for the following
> 
> bayram at bk-pc:/media/disk-1/busybox-trunk$ ./busybox hush -c 'a="path"; echo $a ${a%%\\*}'
> Segmentation fault
> 
> now it is OK
> 
> bayram at bk-pc:/media/disk-1/busybox-trunk$ ./busybox hush -c 'a="path"; echo $a ${a%%\\*}'
> path path

Applied, thanks.
--
vda


More information about the busybox mailing list