File: subshell.cmd

package info (click to toggle)
zshdb 0.04%2Bgit20100102-1
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 1,924 kB
  • ctags: 241
  • sloc: sh: 5,097; lisp: 885; makefile: 306
file content (25 lines) | stat: -rw-r--r-- 342 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
set trace-commands on
# Test of debugging through a subshell
x x
step
examine x
s 
print $ZSH_SUBSHELL
examine x
s
# Set inside a subshell
set autoeval on
examine x
fc -l
s 
x x
print $ZSH_SUBSHELL
# See that debugger settings and history are preserved
show autoeval
fc -l
s 3
x x
print $ZSH_SUBSHELL
# A quit inside a nested subshell.
quit