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

Re: null commands...



Hrvoje Niksic writes:
> Sorry, this one is obviously wrong.  READNULLCMD should be unset (or
> empty) by default.  Then, if READNULLCMD is empty, zsh should use
> ${PAGER:-more} for < file shorthands.  If not, it should use whatever
> is found in READNULLCMD.  How does that sound?

This wouldn't always work. $PAGER may have arguments, e.g. "less -is".
But $READNULLCMD can't:

Et encore? READNULLCMD="less -is"
Et encore? < file
zsh: command not found: less -is
zsh: exit 1     less -is < file

Is it a bug?

-- 
Vincent Lefevre, vlefevre@xxxxxxxxxxx | Acorn RiscPC600, 20+1MB RAM, Eagle M2
http://www.ens-lyon.fr/~vlefevre      | Apple CD-300, SyQuest 270MB
PhD in Computer Science, 1st year     | Atari Falcon030, 4MB RAM
------------------------------------------------------------------------------



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