Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tee -q -o <bad-path> fails silently #4636

Open
povik opened this issue Oct 7, 2024 · 0 comments
Open

tee -q -o <bad-path> fails silently #4636

povik opened this issue Oct 7, 2024 · 0 comments
Labels
pending-verification This issue is pending verification and/or reproduction

Comments

@povik
Copy link
Member

povik commented Oct 7, 2024

Version

Yosys 0.45+153 (git sha1 1f517d6, clang++ 11.1.0 -fPIC -O3)

On which OS did this happen?

macOS

Reproduction Steps

yosys -p "tee -q -o foo/bar.log log (1); log (2)" 

where foo/ doesn't exist

Expected Behavior

An error message is printed hinting of the fact foo/bar.log couldn't be opened for writing

Actual Behavior

The error message from within tee is silenced because of the effect of the -q option, the Yosys process exits with a non-zero exit code but no hint as to why is given; log (2) doesn't execute

Also while opening a tee related issue let me point out the command's code touches yosys_input_files which I think should've been yosys_output_files

@povik povik added the pending-verification This issue is pending verification and/or reproduction label Oct 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pending-verification This issue is pending verification and/or reproduction
Projects
None yet
Development

No branches or pull requests

1 participant