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

Re: NOCLOBBER option: ">" to ">!" in history?



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