Running:
#!/bin/sh
set -ex
for p in ad2 ad0 ad1
do
a0=`expr $p : '^ad\([0-9]\)$'`
done
I get:
syv# sh _
+ expr ad2 : ^ad\([0-9]\)$
+ a0=2
+ expr ad0 : ^ad\([0-9]\)$
+ a0=0
syv# echo $?
1
syv#
That looks like a bug to me...
--
Poul-Henning Kamp | UNIX since Zilog Zeus 3.20
[EMAIL PROTECTED] | TCP/IP since RFC 956
FreeBSD committer | BSD since 4.3-tahoe
Never attribute to malice what can adequately be explained by incompetence.
To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message