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

Re: problems with 'rm -i'



Louis-David Mitterrand wrote:
>Using Debian 1.2, zsh 3.0.2 in an rxvt I've got a strange problem: after
>a while the 'rm -i' (actually it's 'rm' since it is aliased to 'rm -i')
>stops working... That is: it dosen't even prompt me for confirmation of
>removal and dosen't remove anything. 'rm -f' still works though. If I
>restart the terminal it works again for a while. Strange...
>
>I suspect it might be terminal thing because sometimes the removal
>confirmations prompts are printed when I hit <return> but I can't answer
>them, I am put directly at the next shell prompt.

Is it possible that you are executing a shell command that loses the
original stdin?  Something like

exec < /dev/null

would have the effects you describe.  You would still be able to enter
shell commands normally, as zsh reads directly from the terminal,
without using stdin.

-zefram



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