summaryrefslogtreecommitdiff
path: root/test/script
diff options
context:
space:
mode:
authorRoman Smrž <roman.smrz@seznam.cz>2026-08-22 20:07:18 +0200
committerRoman Smrž <roman.smrz@seznam.cz>2026-08-22 20:08:41 +0200
commit1204839cc27af071582b8f6c88530b6840f56f72 (patch)
tree74bf065e10e79a0cf3691faa5e31cc5e03d73473 /test/script
parentb7832766c7225e6f455462eb92ee392249d4c737 (diff)
Shell: implement pwd command
Changelog: Implemented `pwd` command in shell interpreter.
Diffstat (limited to 'test/script')
-rw-r--r--test/script/shell.et14
1 files changed, 14 insertions, 0 deletions
diff --git a/test/script/shell.et b/test/script/shell.et
index 00826c8..2c09aa4 100644
--- a/test/script/shell.et
+++ b/test/script/shell.et
@@ -98,3 +98,17 @@ test ShellPipe:
with p:
expect /run-done/
+
+
+test ShellWorkingDirectory:
+ spawn as p
+ with p:
+ send "load ${scripts.path}/working-directory.et"
+ local:
+ expect /(load-.*)/ capture done
+ guard (done == "load-done")
+ flush
+
+ send "run *"
+
+ expect from p /child-stdout sh (\/.*)/ capture orig_pwd