Re: CVS update: php3
| From: | Kristian Köhntopp | Date: | Tue, 22 Jun 1999 14:44:43 +0000 |
| Subject: | Re: CVS update: php3 | ||
| References: | 1 2 3 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-7423@lists.php.net to get a copy of this message | ||
Sascha Schumann wrote:
> $ echo abc | tr -c b x
> xbxx
>
> Two windows in parallel are confusing, eh? :-)
Seems that three tr's are even more confusing:
kk@poe ~ $ ls -Ll /opt/bin/tr /usr/bin/tr /usr/xpg4/bin/tr
-rwxr-xr-x 1 root other 37444 Feb 25 1998 /opt/bin/tr
-r-xr-xr-x 1 bin bin 15108 May 3 1996 /usr/bin/tr
-r-xr-xr-x 1 bin bin 14480 May 3 1996 /usr/xpg4/bin/tr
kk@poe ~ $ echo "123...abc" | /opt/bin/tr -c 0-9a-z X
123XXXabcXkk@poe ~ $ echo "123...abc" | /usr/bin/tr -c 0-9a-z X
123...abc
kk@poe ~ $ echo "123...abc" | /usr/xpg4/bin/tr -c 0-9a-z X
123...abc
GNU tr works, /usr/bin/tr and /usr/xpg4/bin/tr are broken
on
kk@poe ~ $ uname -a
SunOS poe 5.5.1 Generic_103640-23 sun4m sparc
Kristian
--
Kristian Köhntopp, NetUSE Kommunikationstechnologie GmbH
Siemenswall, D-24107 Kiel, Germany, +49 431 386 436 00
Using PHP3? See our web development library at
http://phplib.shonline.de/ (GPL)