added testscript
This commit is contained in:
parent
1722576c3e
commit
5f6a314749
1 changed files with 16 additions and 0 deletions
16
test/return-value.sh
Executable file
16
test/return-value.sh
Executable file
|
@ -0,0 +1,16 @@
|
|||
#!/bin/sh
|
||||
|
||||
ls /surely-not-existent$$ 2>/dev/null
|
||||
|
||||
if [ "$?" -ne 0 ]; then
|
||||
echo "$?"
|
||||
fi
|
||||
|
||||
ls /surely-not-existent$$ 2>/dev/null
|
||||
|
||||
ret=$?
|
||||
|
||||
if [ "$ret" -ne 0 ]; then
|
||||
echo "$ret"
|
||||
fi
|
||||
|
Loading…
Reference in a new issue