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