Why do I need a space here?
Is there a reason behind requiring a space?
Or at lease a logic behind why was it done like that? Code:
shadyabhi@MBP-archlinux ~ $ array=( zero one two three four five ) |
http://wiki.bash-hackers.org/syntax/...ring_expansion, scroll down to "Negative offset value".
Essentially, otherwise the ':-' is interpreted as the syntax for a default value: Code:
$ echo ${undefined_variable:-1:1} |
Quote:
|
All times are GMT -5. The time now is 02:04 AM. |