summaryrefslogtreecommitdiff
path: root/test/script
diff options
context:
space:
mode:
authorRoman Smrž <roman.smrz@seznam.cz>2026-08-22 21:16:39 +0200
committerRoman Smrž <roman.smrz@seznam.cz>2026-08-22 21:22:10 +0200
commit90bfe6cbf616c4fcd6903a2e0a087045c8f4ea35 (patch)
tree5983a5ec1737adb5d4615f227eb8d646bc3a190c /test/script
parent1204839cc27af071582b8f6c88530b6840f56f72 (diff)
Shell: implement cd command
Changelog: Implemented the `cd` command in shell interpreter.
Diffstat (limited to 'test/script')
-rw-r--r--test/script/shell.et13
1 files changed, 12 insertions, 1 deletions
diff --git a/test/script/shell.et b/test/script/shell.et
index 2c09aa4..fbf385d 100644
--- a/test/script/shell.et
+++ b/test/script/shell.et
@@ -111,4 +111,15 @@ test ShellWorkingDirectory:
send "run *"
- expect from p /child-stdout sh (\/.*)/ capture orig_pwd
+ expect from p /child-stdout sh (\/.*)/ capture home
+ expect_next_stdout from p:
+ "$home/abc/def"
+ "$home/abc"
+ "$home/abc/def/ghi"
+ "$home/abc"
+ "$home/abc"
+ "$home/abc/def/ghi"
+ "$home/abc/def/ghi"
+ "$home"
+ "$home"
+ "/tmp"