Re: [BUG] any subtitution with @/*: ${@#str} or ${*#str} etc

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Vladimir N. Oleynik пишет:

$ echo "${*%b}"
ab bb bc

but need:
a b bc

Interesting moment: bash/ksh produde "a b bc" always, but zsh produce
more funny and like for me:

$ echo ${*%b}
a b bc

$ echo "${*%b}"
ab bb bc

$ echo "${*%c}"
ab bb b

but a knotty logic also:

$ echo "${*#a}"
ab bb bc

$ echo ${*#a}
b bb bc

ohhh

--w
vodz



[Index of Archives]     [LARTC]     [Bugtraq]     [Yosemite Forum]     [Photo]

  Powered by Linux