Re: Tilde expandion for values of long options

2007-12-08 Thread Jan Schampera
Per Starbäck wrote: > Repeat-By: > echo foo=~root => foo=/root > echo --foo=~root=> --foo=~root > > In the second one there is no expansion. >From my understanding of the manpage and the SUS the first one is "wrong", it should not be expanded. I don't say it's

Re: Tilde expandion for values of long options

2007-12-08 Thread Chet Ramey
Jan Schampera wrote: > Per Starbäck wrote: > >> Repeat-By: >> echo foo=~root => foo=/root >> echo --foo=~root=> --foo=~root >> >> In the second one there is no expansion. > > From my understanding of the manpage and the SUS the first one is > "wrong", it should not

Re: Tilde expandion for values of long options

2007-12-08 Thread Eric Blake
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 According to Chet Ramey on 12/8/2007 9:18 PM: > You're correct that Posix doesn't say either form should be expanded. > The first is a bash extension (and only bash -- it isn't done when bash > is running in posix mode). Speaking of tilde expansion an