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

Re: > Redirection




On 24 Dec 2008, at 16:20, Chris Johnson wrote:

Jerry Rocteur sent me the following 0.3K:

Sorry for this but it is bugging me an I can't find an answer.

When I type > filename

I want it to do the same as cp /dev/null filename

If I read you right, I think you want to precede that command with a
colon:

  : > filename

Hi Chris,

That does work indeed but I want the default behaviour, I would like that when I type

> filename that it behaves as if I had done : > filename!

I'm looking for a setopt that will fix this non standard behaviour.

Thanks for any help anybody,

Jerry

Attachment: smime.p7s
Description: S/MIME cryptographic signature



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