~emersion/mrsh

ref: ec97ac337f6321197c3809759b75eeda97e1bdc9 mrsh/test/subshell.sh -rw-r--r-- 148 bytes
ec97ac33Simon Ser shell/task/word: implement trim prefix/suffix operator for simple patterns 2 years 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