sible match from the left export $foo="this is a test"
echo ${foo#t*is}
is a test
${foo##t*is} Deletes the longest possible match from the left export $foo="this is a test"
echo ${foo##t*is}
a test
${foo%t*st} Deletes the shortest possible match from the right export $fo
ator behaves differently within a double-brackets test than within single brackets.
<code>
[[ $a == ... e>
----
-n
string is not null.
Caution
The -n test requires that the string be quoted within the test brackets. Using an unquoted string with ! -z, or even just the unquoted string alone within test brackets (see Example 7-6) normally works, howeve