File: subshell.cmd

package info (click to toggle)
zshdb 0.05%2Bgit20101031-3
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 2,104 kB
  • ctags: 209
  • sloc: sh: 5,563; makefile: 337
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