* Re: zsh question
[not found] <14400.50997.74718.705648@zoger.emphatic.com>
@ 1999-11-28 17:28 ` Bart Schaefer
0 siblings, 0 replies; only message in thread
From: Bart Schaefer @ 1999-11-28 17:28 UTC (permalink / raw)
To: Bob Glickstein; +Cc: zsh-workers
On Sat, 27 Nov 1999, Bob Glickstein wrote:
> Hi Bart. I use "setopt NOCLOBBER," so that I have to append a ! to >
> and >> when the destination file exists. What I'd really like is an
> option that requires a ! only for > and not for >>. Is there one?
Just to be sure there's no confusion: NOCLOBBER means > requires a ! when
the file exists, and >> needs a ! when the file does NOT exist. This is a
csh-ism. Also: >| and >>| are equivalent to >! and >>!.
No, there's no option to change this. There's HIST_ALLOW_CLOBBER, which
causes > and >> to be entered into the history as >| and >>|, so that if
you immediately do !! (or C-p RET) the redirection gets forced. That may
not work inside emacs if shell-mode decides to interpret the !! for you;
I've never been sure exactly when it does that ("Using history item: 7").
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~1999-11-28 17:28 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
[not found] <14400.50997.74718.705648@zoger.emphatic.com>
1999-11-28 17:28 ` zsh question Bart Schaefer
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).