Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: NOCLOBBER option: ">" to ">!" in history?
- X-seq: zsh-users 10993
- From: Peter Stephenson <pws@xxxxxxx>
- To: zsh-users@xxxxxxxxxx
- Subject: Re: NOCLOBBER option: ">" to ">!" in history?
- Date: Thu, 16 Nov 2006 10:27:26 +0000
- In-reply-to: <20061116084640.GP5693@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx>
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- References: <20061116084640.GP5693@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx>
holger.dinkel@xxxxxxxxx wrote:
> If you really do want to clobber a file, you can use the >! operator.
> To make things easier in this case, the > is stored in the history
> list as a >!:
>
> % cat /dev/null >! ~/.zshrc
> % cat /etc/motd > ~/.zshrc
> zsh: file exists: /u/pfalstad/.zshrc
> % !!
> cat /etc/motd >! ~/.zshrc
> % ...
You actually need to have the HIST_ALLOW_CLOBBER option set for that.
The introduction needs updating.
--
Peter Stephenson <pws@xxxxxxx> Software Engineer
CSR PLC, Churchill House, Cambridge Business Park, Cowley Road
Cambridge, CB4 0WZ, UK Tel: +44 (0)1223 692070
To access the latest news from CSR copy this link into a web browser: http://www.csr.com/email_sig.php
Messages sorted by:
Reverse Date,
Date,
Thread,
Author