File: exit-code-and-stdout.sh

package info (click to toggle)
clitest 0.5.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 532 kB
  • sloc: sh: 1,611; makefile: 24
file content (7 lines) | stat: -rw-r--r-- 76 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
$ echo "zero"; echo $?
zero
0
$ echo "two"; sh -c "exit 2"; echo $?
two
2
$