sion of the form ${param:offset[:length} is used, an `offset' that evaluates to a number less than zer... he right. The operators, with their functions and an example, are shown in the following table:
Operat... ive shell, this will abort the current script. In an interactive shell, this will just print the error... me
Notice that the GNU version of basename takes an optional parameter. This handy for specifying a f
de>
[[ $a == z* ]] # True if $a starts with an "z" (pattern matching).
[[ $a == "z*" ]] # Tr... ed within a [ ] construct.
See Example 27-11 for an application of this comparison operator.
----
-z
... string be quoted within the test brackets. Using an unquoted string with ! -z, or even just the unquo... see Example 7-6) normally works, however, this is an unsafe practice. Always quote a tested string.
=