ksh query

From: Rob Wilson <rawilson_at_subcorp.com.au>
Date: Mon, 10 Aug 1998 17:17:04 +0930

G'Day gurus,

This is a wierd one.

Running ksh on DU 4.0B, type the following commands:

export A=$(dirname /usr/local/bin | tr "[a-z]" "[A-Z]")
echo $A
/USR/LOCAL

export A=$(dirname /usr/local/bin | tr "[A-Z]" "[a-z]")
echo $A


export A=$(dirname /usr/local/bin | tr "[a-z]" "[A-Z]")
echo $A


Note that the second and third commands output nothing for A.
Note also that the first and third commands are the same.

Does anyone have an explanation?



Cheers
Rob WIlson
UNIX SYSTEM Administrator
Australian Submarine Corporation
Received on Mon Aug 10 1998 - 07:48:50 NZST

This archive was generated by hypermail 2.4.0 : Wed Nov 08 2023 - 11:53:38 NZDT