Doug Barton wrote: > I came across this problem during a recent portmaster update. When > trying to strip off the * character using variable expansion in bin/sh > it doesn't work. Other "special" characters do work if they are > properly escaped.
Your script does
var=${var%\*}
When I tried it myself, I automatically typed quotes, which does work
var="${var%\*}"
Alternatively you could use (with or without quotes)
var="${var%[*]}"
Still, I don't see a reason why your variant shouldn't work as well..
Regards,
Johan
pgpF040hK1k5O.pgp
Description: PGP signature

