[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Bug in "expr"
From: |
Jay McGuerty |
Subject: |
Bug in "expr" |
Date: |
Wed, 16 Dec 2009 12:19:22 -0800 |
User-agent: |
Microsoft-Entourage/12.23.0.091001 |
Hi,
I am using CentOS v5.3 BASH v3.2.25(1) and get an error when I use the
"expr" command
to extract characters and it encounters a space. It returns the correct
value - just sends an
error as well..... this appears to be a bug....
# echo $slime
three blind mice
char=`expr ${slime:4:1}`
# echo $char
e
# char=`expr ${slime:5:1}`
expr: missing operand
Try `expr --help' for more information.
# echo $char
#
--
Jay McGuerty
Principal Security Engineer/IISBU
SAIC
10260 Campus Point Drive
San Diego, CA. 92121
858.826.7309 off
858.663.5209 cell
fax 858.826.5620
- Bug in "expr",
Jay McGuerty <=