~emersion/mrsh

ref: 07e65a3a88e03c6d9e6f1f6ac4a1cfa9a74a9b09 mrsh/test/subshell.sh -rw-r--r-- 148 bytes
07e65a3aSimon Ser parser/arithm: fix && and || 1 year, 10 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
#!/bin/sh

echo "Subshell assignment"
a=a
(a=b)
echo $a

echo "Subshell status"
(exit 1) && echo "shouldn't happen"
true # to clear the last status