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

Re: '>>' does not create file if set -C (noclobber) is active



On Jun 25,  4:22am, Martijn Dekker wrote:
} Subject: Re: '>>' does not create file if set -C (noclobber) is active
}
} > The noclobber option is an extension, and has nothing whatsoever to do
} > with POSIX.
} 
} That is not correct.

Well, damn.  When did they do that?

As far as I know, this was first implemented in zsh and has worked as it
does in zsh since around 1990 -- there is no mention of the -C option in
the ksh88 manual, for example.  So I'm still inclined to say that this
is just not going to change, because we'd either have to (1) change it in
native mode or (2) do one of those hacks that tests the emulation mode
so it only works if you actually start the shell that way or (3) add an
entirely new setopt just for this.  I don't like any of those choices.



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