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

[BUG] fc -p allows invalid path without error



zsh 5.9 (x86_64-pc-linux-gnu)

Expected behavior:
Errors immediately.
Actual behavior:
No error until pop/write.

% fc -p /nonexistent/path/file
% fc -P
2: zsh: locking failed for /nonexistent/path/file: no such file or directory

The absence of immediate path validation in fc -p seems atypical compared to the behavior of most Unix utilities, which generally report an error as soon as an invalid path is provided.
Thank you to everyone on this list for your dedication to zsh and the collective effort that has kept it reliable and well-maintained; I hope this report contributes towards that reliability. I’d appreciate a quick reply to confirm whether this issue is of interest to the team.

-JR


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