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

Re: output from 'builtin' command not redirectable



Ian Macdonald wrote:
>$ builtin foo &>/dev/null
>zsh: no such builtin: foo
>
>No matter what I do, I can't redirect the output of the 'builtin'
>command.

{ builtin foo; } &>/dev/null

Unfortunately this technique isn't portable to every shell, but it works
just as you'd expect in zsh.

-zefram



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