Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: sh compatibility again :->



Hi!

Zoltan wrote:
> Andrej Borsenkow wrote:
>> 4. Traditional /bin/sh interprets `set -' as set +xv. It could be well
>> undocumented (it is not on our system) but still is so. Could anybody test
>> it on more than one systems? zsh silently sets positional parameters to
...
> OK.  I've changed that.  set - will be the same as set +xv and
> set - args will be the same as set +xv -- args.  This will not be
> documented since it is just an obsolecent compatibility feature and
> noone should use that.

Excerpt from the BSD 4.3 sh(1) manual page:

     set [-eknptuvx [arg ...]]

     ....

     -v Print shell input lines as they are read.
     -x Print commands and their arguments as they are exe-
        cuted.
     -  Turn off the -x and -v options.

Greetings, Wolfgang.



Messages sorted by: Reverse Date, Date, Thread, Author