From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from euclid.skiles.gatech.edu (list@euclid.skiles.gatech.edu [130.207.146.50]) by coral.primenet.com.au (8.7.5/8.7.3) with ESMTP id QAA01948 for ; Mon, 12 Aug 1996 16:36:20 +1000 (EST) Received: (from list@localhost) by euclid.skiles.gatech.edu (8.7.3/8.7.3) id CAA02059; Mon, 12 Aug 1996 02:21:56 -0400 (EDT) Resent-Date: Mon, 12 Aug 1996 02:21:56 -0400 (EDT) Date: Mon, 12 Aug 1996 10:20:09 +0400 (MOW) From: Andrej Borsenkow X-Sender: bor@itsrm1 Reply-To: borsenkow.msk@sni.de To: schaefer@nbn.com cc: Zoltan Hidvegi , zsh-workers@math.gatech.edu Subject: Re: sh compatibility again :-> In-Reply-To: <960811213634.ZM4881@candle.brasslantern.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Resent-Message-ID: <"14Y4p2.0.3W.3si3o"@euclid> Resent-From: zsh-workers@math.gatech.edu X-Mailing-List: archive/latest/1944 X-Loop: zsh-workers@math.gatech.edu Precedence: list Resent-Sender: zsh-workers-request@math.gatech.edu On Sun, 11 Aug 1996, Bart Schaefer wrote: > > } > But the following things could probably be fixed > } > > } > 4. Traditional /bin/sh interprets `set -' as set +xv. > } > } OK. I've changed that. set - will be the same as set +xv and > } set - args will be the same as set +xv -- args. > > Hmm. So what's the approved way of setting $1 to "-x"? `set -- -x`? > And is `set --` equivalent to `shift $#`, since `set -` is not? > > Are you sure `set - args` should act like `set +xv -- args`? > Well, /bin/sh behaves execatly this way. > I can't say I'm entirely excited about this change. > It is lonely `set -' which have this effect. Just the same, as lonely `set +' does *not* sets $1 to + but rather outputs all parameter names. If I try `set + foo', it sets $1 to `foo'. So `set -' could just follow the suit. Greetings ------------------------------------------------------------------------- Andrej Borsenkow Fax: +7 (095) 252 01 05 SNI ITS Moscow Tel: +7 (095) 252 13 88 NERV: borsenkow.msk E-Mail: borsenkow.msk@sni.de -------------------------------------------------------------------------