File: subshell1.cmd

package info (click to toggle)
bashdb 3.1.0.9-1
  • links: PTS, VCS
  • area: main
  • in suites: lenny
  • size: 3,252 kB
  • ctags: 117
  • sloc: sh: 4,880; pascal: 3,186; lisp: 484; makefile: 315; ansic: 294
file content (11 lines) | stat: -rw-r--r-- 232 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
set trace-commands on
### Test step inside multi-statement line...
p "BASH_SUBSHELL: $BASH_SUBSHELL"
step 
step
step 
### Should now be inside a subshell...
p "BASH_SUBSHELL: $BASH_SUBSHELL"
print "Test unconditional quit..."
quit