|
From: | Matthias Klose |
Subject: | bug#22045: expr substr returns with an error code 1 when the substring starts with 0 |
Date: | Sat, 28 Nov 2015 21:47:14 +0100 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.3.0 |
$ expr substr 00001234 3 4; echo $? 0012 0 $ expr substr 1234 1 2; echo $? 12 0 $ expr substr 00001234 1 2; echo $? 00 1 $ expr substr 00001234 1 4; echo $? 0000 1 $ expr substr 00001234 1 5; echo $? 00001 0
[Prev in Thread] | Current Thread | [Next in Thread] |