mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-05-23 21:31:14 -03:00
builtin status: remove spurious newline from current-command (Rust port regression)
WHen "status current-command" is called outside a function it always returns
"fish". An extra newline crept in, fix that.
Fixes 77aeb6a2a8 (Port execution, 2023-10-08).
Fixes #11503
This commit is contained in:
@@ -38,6 +38,9 @@ status --job-control=1none
|
||||
# Now set it to a valid mode.
|
||||
status job-control none
|
||||
|
||||
status current-command | sed s/^/^/
|
||||
# CHECK: ^fish
|
||||
|
||||
# Check status -u outside functions
|
||||
status current-function
|
||||
#CHECK: Not a function
|
||||
|
||||
Reference in New Issue
Block a user