fork/fish-shell

git clone https://git.julia.blue/fork/fish-shell

Johannes AltmanningerMerge pull request #11691c123c4e86

master
683 B23 linesraw
1#RUN: %fish %s
2
3function my-src
4    echo hello
5end
6
7echo "functions --copy my-src my-dst" >my-copy-function.fish
8source my-copy-function.fish
9rm my-copy-function.fish # Cleanup
10
11functions --details --verbose my-dst
12# CHECK: my-copy-function.fish
13# CHECK: {{.*}}tests/checks/funced.fish
14# CHECK: 3
15# CHECK: scope-shadowing
16
17VISUAL=cat EDITOR=cat funced my-dst
18# CHECK: # Defined in {{.*}}/tests/checks/funced.fish @ line 3, copied in my-copy-function.fish @ line 1
19# CHECK: function my-dst
20# CHECK:     echo hello
21# CHECK: end
22# CHECK: Editor exited but the function was not modified
23# CHECK: If the editor is still running, check if it waits for completion, maybe a '--wait' option?