man mention case of null word in ${parameter#word}
From:
Dan Jacobson
Subject:
man mention case of null word in ${parameter#word}
Date:
22 Nov 2001 12:47:18 +0800
User-agent:
Gnus/5.0808 (Gnus v5.8.8) Emacs/20.7
In the manual, for
${parameter#word}
etc. it doesn't mention the case of when word is null.
Furthermore, for
$ a=(123 456);echo ${a[@]/#/1}
1123 1456
one might have never thought this possible, due to the manual only
saying:
${parameter/pattern/string}
...If string is null, matches of pattern are deleted and
the / following pattern may be omitted.
--
http://www.geocities.com/jidanni/ Tel+886-4-25854780