"NP" == Norbert Preining writes:

 >> So my patch additionally includes a replacement of those two
 >> statements with ${var##pattern} and ${var%pattern} expansions. These
 >> expansions are POSIX and should thus be reasonably portable.

note that on Solaris, /bin/sh is not a POSIX shell (there is a POSIX
shell at /usr/xpg4/bin/sh).

$ ZZZ=/aa/bb/cc/dd
$ echo ${ZZZ%/*}
bad substitution
$ echo ${ZZZ##*/}
bad substitution

Best,
v.



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to