In message <[EMAIL PROTECTED]>, "James Youngman" writes: >On Wed, Sep 17, 2008 at 5:12 AM, Peter Seebach <[EMAIL PROTECTED]> wrote: > >> set -- args > >Hmm, I certainly have a habit of doing this instead: > >set x blablablablabla >shift > >However, the only source file I can find that still does this was >written in 2002. My guess is that I have used a system where this >didn't work, but not for a long time. If I had to guess at a system >that might have a problem with the -- form, it would be either an old >Sun box (which you already indicated you would not be interested in) >or perhaps Sequent DYNIX/ptx 4.x. While DYNIX/ptx 4.x did get y2k >patches, I still don't think it is a worthwhile porting target so I'd >not recommend trying to bother verifying the allegation I just made >anyway...
The one thing I found is that SVR4 shell doesn't clear $* on 'set --'. It does reset it completely on 'set -- foo'. So I documented that. -s