Problem in bin/sh stripping the * character through ${expansion%}

Johan van Selst johans at stack.nl
Thu Aug 6 18:45:57 UTC 2009


Johan van Selst wrote:
> When I tried it myself, I automatically typed quotes, which does work
> 	var="${var%\*}"

Really should learn to read better: this in fact procudes 'foo'
rather than 'foo\' in the given example case. Again, not like bash.


Johan
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 163 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-hackers/attachments/20090806/5a03652e/attachment.pgp


More information about the freebsd-hackers mailing list