blob: 8df0aaaf630a0dfe1ef47597addb314ff367e716 (
plain) (
blame)
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
26
27
28
29
30
31
32
33
34
|
# A shell run under a wrapper exec'd over the one pardes started, that
# stays where it started (fish's own `exec 9ns --mntgen -- fish`; timeout
# here): after a cd the pane is where the foreground shell is, not where
# the wrapper is. So a path fd prints two
# directories down (b/c.txt) and a name ls prints (top.txt) look from there.
# The fd path goes first: the file it opens sits in a/b, a directory that
# could not rescue the ls name after it.
dirmk a
dirmk a/b
file a/top.txt top-marker
file a/b/c.txt deep-marker
start 31 100
wait 8000 $
stable 700 20000
text exec timeout --foreground 600 bash -i
key enter
stable 700 20000
text cd a && ls && fd
key enter
wait 8000 c.txt
wait 8000 cwd/a Tty
stable 700 20000
snap listed
press right 6 8
release right 6 8
wait 10000 deep-marker
stable 700 15000
snap fd-path-looked
# the ls name, from the shell's directory
press right 8 6
release right 8 6
wait 10000 top-marker
stable 700 15000
snap ls-name-looked
|