View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0000282 | tcsh | General | public | 2021-08-15 13:51 | 2022-04-23 12:21 |
Reporter | kato | Assigned To | christos | ||
Priority | normal | Severity | minor | Reproducibility | always |
Status | confirmed | Resolution | open | ||
Platform | GNU/Linux x86_64 | OS | Open SuSE Leap | OS Version | 15.3 |
Summary | 0000282: tcsh 6.20.00 : shell variable "anyerror" does not work as described in the tcsh man page | ||||
Description | If "anyerror" is set, the exit status of a non-simple command should be non-zero if any subcommand fails. However, this does not hold in any case. | ||||
Steps To Reproduce | /home/test> tcsh --version tcsh 6.20.00 (Astron) 2016-11-24 (x86_64-unknown-linux) options wide,nls,lf,dl,al,kan,sm,color,filec /home/test> cat non-existent-file|cat cat: non-existent-file: No such file or directory Exit 1 /home/test> set variable=`cat non-existent-file` cat: non-existent-file: No such file or directory Exit 1 /home/test> set variable=`cat non-existent-file|cat` cat: non-existent-file: No such file or directory /home/test> echo $? 0 | ||||
Tags | No tags attached. | ||||
|
set x=`cat /does/not/exist` should set status to 1 and does not. |
|
The bug persists with tcsh 6.24.00 with Open SuSE Leap 15.3: /home/test> echo $version tcsh 6.24.00 (Astron) 2022-02-02 (x86_64-suse-linux-suse-linux) options wide,nls,lf,dl,al,kan,sm,color,filec /home/test> set anyerror /home/test> set x=`cat /does/not/exist` cat: /does/not/exist: No such file or directory /home/test> echo $status 1 /home/test> set x=`cat /does/not/exist|less` cat: /does/not/exist: No such file or directory /home/test> echo $status 0 |
Date Modified | Username | Field | Change |
---|---|---|---|
2021-08-15 13:51 | kato | New Issue | |
2021-11-14 17:35 | christos | Assigned To | => christos |
2021-11-14 17:35 | christos | Status | new => assigned |
2021-11-14 17:35 | christos | Status | assigned => confirmed |
2021-11-14 17:35 | christos | Note Added: 0003676 | |
2022-04-23 12:21 | kato | Note Added: 0003737 |