mirror of
https://github.com/fish-shell/fish-shell.git
synced 2025-02-22 00:42:10 +08:00
tests: Rename a function
NetBSD actually has a /usr/bin/error by default, so we ended up starting that.
This commit is contained in:
parent
7425d85729
commit
ff497e25c0
@ -44,14 +44,14 @@ $fish -c 'echo "ok $(echo still ok)syntax error: \x"' 2>| string replace -r '.*'
|
|||||||
# CHECK: <echo "ok $(echo still ok)syntax error: \x">
|
# CHECK: <echo "ok $(echo still ok)syntax error: \x">
|
||||||
# CHECK: < ^>
|
# CHECK: < ^>
|
||||||
|
|
||||||
echo "function error" >$TMPDIR/error.fish
|
echo "function this_should_be_an_error" >$TMPDIR/this_should_be_an_error.fish
|
||||||
$fish -c "set -g fish_function_path $(string escape $TMPDIR); error"
|
$fish -c "set -g fish_function_path $(string escape $TMPDIR); this_should_be_an_error"
|
||||||
# CHECKERR: ~/temp/error.fish (line 1): Missing end to balance this function definition
|
# CHECKERR: ~/temp/this_should_be_an_error.fish (line 1): Missing end to balance this function definition
|
||||||
# CHECKERR: function error
|
# CHECKERR: function this_should_be_an_error
|
||||||
# CHECKERR: ^
|
# CHECKERR: ^
|
||||||
# CHECKERR: from sourcing file ~/temp/error.fish
|
# CHECKERR: from sourcing file ~/temp/this_should_be_an_error.fish
|
||||||
# CHECKERR: source: Error while reading file '{{.*}}/error.fish'
|
# CHECKERR: source: Error while reading file '{{.*}}/this_should_be_an_error.fish'
|
||||||
# CHECKERR: fish: Unknown command: error
|
# CHECKERR: fish: Unknown command: this_should_be_an_error
|
||||||
# CHECKERR: fish:
|
# CHECKERR: fish:
|
||||||
# CHECKERR: set -g fish_function_path {{.*}}; error
|
# CHECKERR: set -g fish_function_path {{.*}}; this_should_be_an_error
|
||||||
# CHECKERR: ^
|
# CHECKERR: ^
|
||||||
|
Loading…
x
Reference in New Issue
Block a user