Re: [PATCH] prompt: fix missing file errors in zsh

2014-04-14 Thread Junio C Hamano
Felipe Contreras writes: > zsh seems to have a bug while redirecting the stderr of the 'read' > command: > > % read foo 2> /dev/null < foo > zsh: no such file or directory: foo > > Which causes errors to be displayed when certain files are missing. > Let's add a convenience function to manually

[PATCH] prompt: fix missing file errors in zsh

2014-04-11 Thread Felipe Contreras
zsh seems to have a bug while redirecting the stderr of the 'read' command: % read foo 2> /dev/null < foo zsh: no such file or directory: foo Which causes errors to be displayed when certain files are missing. Let's add a convenience function to manually check if the file is readable before cal