Korn Shell question regarding set command

Brad Appleton brad at SSD.CSD.HARRIS.COM
Wed Jul 4 00:11:36 AEST 1990


I am looking at the discussion of the 'set' command on pages 197-200 of 
the Korn Shell Manual and I am unsure as to whether or not setting an
array is going to clobber my positional parameters.

As far as I can tell, the following should leave $1, $2, ... untouched:

	set -A myarray elt0 elt1 elt2

My version of ksh is 11/16/88. What I would like to know is:

1) Is the above set command "supposed" to change the positional parameters?

2) If the answer to #1 is NO, Will the above set command change my positional
   parameters anyway (would it be a bug if it did)?

3) If the above would be a bug, in what version of ksh (if any) is this fixed?

advTHANXance
______________________ "And miles to go before I sleep." ______________________
 Brad Appleton         brad at hcx1.ssd.csd.harris.com    Harris Computer Systems
                           ...!uunet!hcx1!brad         Fort Lauderdale, FL USA
~~~~~~~~~~~~~~~~~~~~ Disclaimer: I said it, not my company! ~~~~~~~~~~~~~~~~~~~



More information about the Comp.unix.questions mailing list