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

Re: > Redirection



@ Rocteur CC <jerry@xxxxxxx>:
> 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

(k)sh-like behaviour...

> > filename that it behaves as if I had done : > filename!
>
> I'm looking for a setopt that will fix this non standard behaviour.

man zshparam | less -p NULLCMD

Regards, Frank

-- 
In protocol design, perfection has been reached not when there is
nothing left to add, but when there is nothing left to take away.
                                                  -- RFC 1925



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