all repos — scriptura @ 2ad533210f375712ba2e16104c2bf49b9096e9e0

a corner in $HOME for your scripts

fix directory arg handling

Alan Pearce
commit

2ad533210f375712ba2e16104c2bf49b9096e9e0

parent

1ec690340ff66e93e6a54be54fc2f0f3bc3c239b

1 file changed, 9 insertions(+), 0 deletions(-)

changed files
M tests/scriptura.fishtests/scriptura.fish
@@ -151,6 +151,15 @@ chmod +x "$test_root/list_test"
scriptura 2>&1 | string match --regex "list_test" ) +# Test: directory listing with argument shows children +@test "directory listing with argument shows children" -n ( + set --global --export SCRIPTURA_ROOT $test_root + mkdir -p "$test_root/test_dir" + printf "#!/usr/bin/env fish\n# Test script\n" > "$test_root/test_dir/test_script" + chmod +x "$test_root/test_dir/test_script" + scriptura test_dir 2>&1 | string match "test_script*" +) + # Test: help file is used for directories @test "help file is used for directories" ( set --global --export SCRIPTURA_ROOT $test_root