[prev in list] [next in list] [prev in thread] [next in thread] 

List:       bash-bug
Subject:    Negative offset with variable expansion doesn't work
From:       Bernhard Rosenkraenzer <bero () redhat ! de>
Date:       2002-05-21 14:42:30
Message-ID: Pine.LNX.4.44.0205211641170.27276-100000 () bochum ! stuttgart ! redhat ! com
[Download RAW message or body]

Reproduced with both 2.04 and 2.05:

var=12345
echo ${var:-2:2}

results in
12345

rather than
45

LLaP
bero

-- 
This message is provided to you under the terms outlined at
http://www.bero.org/terms.html



[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic