~sircmpwn/mrsh

94bb9b7acde7a60c7e408a0f6e16e1b689bd30be — Simon Ser 6 months ago 2637fb2
test: add subshell assignment test
1 files changed, 7 insertions(+), 0 deletions(-)

M test/subshell.sh
M test/subshell.sh => test/subshell.sh +7 -0
@@ 1,3 1,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