Bug#192831: general: bash expansion failure
Package: general
Version: 20030510
Severity: normal
bash line:
--------------------
22:49:20 BDI:~$ export a=12345
22:49:33 BDI:~$ echo ${a:1:1}
2
22:49:40 BDI:~$ echo ${a:-1:1}
12345
22:49:58 BDI:~$
--------------------
man pages :
If offset evaluates to a number less than zero, the value is used as an offset from the end of the value of parameter.
it should go from the end of parameter...
-- System Information
Debian Release: 3.0
Kernel Version: Linux atrey 2.2.20 #4 Tue Nov 6 15:21:30 CET 2001 i586 unknown
Reply to: