zsh-users
 help / color / mirror / code / Atom feed
* clobbering with >&
@ 2000-01-11  0:57 Paul Ackersviller
  2000-01-11 17:41 ` Bart Schaefer
  0 siblings, 1 reply; 2+ messages in thread
From: Paul Ackersviller @ 2000-01-11  0:57 UTC (permalink / raw)
  To: zsh-users

After using zsh for a while, I find myself gradually going back to the few
worthwhile features of csh, whch I used many years ago.

Here's something I don't see covered in the docs -- is it possible to
override the noclobber variable when doing output redirection with >&?
I've tried the obvious permutations of ! and | with it, but just get syntax
errors.

Never mind, I just answered my own question.  It appears >&\! will do the
trick.  Perhaps this should be documented.

Thanks to the workers for an amazing shell program.

-- 
Paul Ackersviller


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: clobbering with >&
  2000-01-11  0:57 clobbering with >& Paul Ackersviller
@ 2000-01-11 17:41 ` Bart Schaefer
  0 siblings, 0 replies; 2+ messages in thread
From: Bart Schaefer @ 2000-01-11 17:41 UTC (permalink / raw)
  To: Paul Ackersviller, zsh-users

On Jan 10,  7:57pm, Paul Ackersviller wrote:
} Subject: clobbering with >&
}
} Here's something I don't see covered in the docs -- is it possible to
} override the noclobber variable when doing output redirection with >&?
} I've tried the obvious permutations of ! and | with it, but just get syntax
} errors.

What syntax errors?  Can you give a precise example, please?

} Never mind, I just answered my own question.  It appears >&\! will do the
} trick.  Perhaps this should be documented.

Both >&| and >&! *should* work just fine, without the backslash.  Note that
you need a space after the `!' to prevent it being from taken as a history
reference, but even that isn't necessary with the `>&|' form.

-- 
Bart Schaefer                                 Brass Lantern Enterprises
http://www.well.com/user/barts              http://www.brasslantern.com


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2000-01-11 17:41 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2000-01-11  0:57 clobbering with >& Paul Ackersviller
2000-01-11 17:41 ` 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).