hoge.csh
#!/bin/csh-f
source hoge.env
[EOF]
hoge.env
#Originally set the environment variable here
set | grep-aversion# version display
echhhho "The End" [EOF]
Run Results
$./hoge.csh
version tcsh6.17.00 (Astron) 2009-07-10 (x86_64-unknown-linux) options wide, nls, dl, al, kan, rh, color, filec
I misspelled "echhhho" in hoge.env, so it should end with a "command not found" error, but it was not processed (?) because it didn't break the line at the end, so it ended normally. (I don't notice)
I noticed an error when I was running in a different environment.
Run Results
$./hoge.csh
tcsh6.18.01 (Astron) 2012-02-14 (x86_64-unknown-linux) options wide, nls, dl, al, kan, sm, rh, color, filec
echhhho —Command not found.
Is the result different depending on the tcsh version?(In that case, please give me the sauce!)
I was staring at it, but I couldn't find the web page that was clearly indicated, so I asked you a question.
bug fix for tcsh6.17.03.
https://github.com/tcsh-org/tcsh/blob/48c44071d7c66ba4a7757376ff333d9e3bd820ba/Fixes#L227-L228
© 2024 OneMinuteCode. All rights reserved.