diff options
author | jilles <jilles@FreeBSD.org> | 2012-01-15 20:04:05 +0000 |
---|---|---|
committer | jilles <jilles@FreeBSD.org> | 2012-01-15 20:04:05 +0000 |
commit | 6253417a7002be7641015b22d63bbe274869ed0b (patch) | |
tree | f70a5342132acdff57c298b57df7abd30ebb8dfb /lib/libc | |
parent | 67dd0ca2547a8ce8b86b7f88b4ccee6e14abeb4c (diff) | |
download | FreeBSD-src-6253417a7002be7641015b22d63bbe274869ed0b.zip FreeBSD-src-6253417a7002be7641015b22d63bbe274869ed0b.tar.gz |
sh: Fix two bugs with case and exit status:
* If no pattern is matched, POSIX says the exit status shall be 0 (even if
there are command substitutions).
* If a pattern is matched and there are no command substitutions, the first
command should see the $? from before the case command, not always 0.
Diffstat (limited to 'lib/libc')
0 files changed, 0 insertions, 0 deletions