mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-06-07 10:01:14 -03:00
type: Add missing newline
Otherwise this would print
# Defined interactivelyfunction foo
for interactively defined functions.
This commit is contained in:
@@ -56,3 +56,11 @@ expect_prompt("error: no-execute mode enabled and no script given. Exiting")
|
||||
|
||||
sendline("source; or echo failed")
|
||||
expect_prompt("failed")
|
||||
|
||||
# See that `type` tells us the function was defined interactively.
|
||||
sendline("function foo; end; type foo")
|
||||
expect_str("foo is a function with definition\r\n")
|
||||
expect_str("# Defined interactively\r\n")
|
||||
expect_str("function foo")
|
||||
expect_str("end")
|
||||
expect_prompt()
|
||||
|
||||
Reference in New Issue
Block a user