r characters of $a. The problem is that ${param:-word} already has a well-defined meaning: expand to word if the expanded value of param is unset or null... le statement like: "Most of the bang! tricks that work in csh work the same way in bash").
However, buried in the... st never used -- because commands like mv, and cp won't work properly if their arguments are passed to them ... 1; do cp $i ${i%$1}$2; done
... but that doesn't work like most Unix users would expect. You'd have to pass this command a pair
ching).
[ $a == z* ] # File globbing and word splitting take place.
[ "$a" == "z*" ] # Tr... e within test brackets (see Example 7-6) normally works, however, this is an unsafe practice. Always q... In this particular instance, both "-ne" and "!=" work.
echo
exit 0</code>
=== Example 7-6. Testing... "string1\" is null."
fi # This works fine.
# The [ ... ] test operator alone detect