Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!utgpu!water!watnot!watmath!clyde!rutgers!seismo!mcvax!unido!iaoobelix!wagner From: wagner@iaoobelix.UUCP Newsgroups: comp.bugs.4bsd Subject: Bug/Feature in `test' - (nf) Message-ID: <6200001@iaoobelix.UUCP> Date: Thu, 2-Apr-87 04:37:00 EST Article-I.D.: iaoobeli.6200001 Posted: Thu Apr 2 04:37:00 1987 Date-Received: Sat, 4-Apr-87 19:03:26 EST Lines: 42 Nf-ID: #N:iaoobelix:6200001:000:988 Nf-From: iaoobelix!wagner Apr 2 10:37:00 1987 [ Hey, lineeater! This line is for you! ] The following might be a bug, it might be a feature. Anyway, it is one of the little trivial problems one faces when porting shell scripts from a Sun OS3.2 to a VAX BSD4.2/uVAX ULTRIX. The file `try' contains the following: #! /bin/sh if [ "$1" = "-d" ] then echo ok fi The I typed in: % try 8 bad % try -d What did I get??? Guess! On the Sun (OS 3.2): try -d => ok On the VAX (BSD 4.2): try -d => bad On the uVAX (ULTRIX): try -d => bad At least one of the three machines above did something wrong! My question to net.land is "which one?" It is just annoying to use workarounds like putting a dummy char in front of each string or writing cases, etc... Thanx 1e6 in advance, Juergen Wagner, USENET: ...seismo!unido!iaoobel!wagner ("Gandalf") or ...!pyramid!iaoobel!wagner Mail: Juergen Wagner Fraunhofer-Institut IAO Rosenbergstr. 28 D-7000 Stuttgart 1 Federal Republic of Germany Phone: + 49 711 6648-205