mirror of
https://github.com/fish-shell/fish-shell.git
synced 2025-03-27 14:45:13 +08:00
Remove "called on standard input" message
This was printed basically everywhere. The user knows what they executed on standard input. A good example: ```fish set c (subme 513) ``` used to print ``` fish: Too much data emitted by command substitution so it was discarded set -l x (string repeat -n $argv x) ^ in function 'subme' called on standard input with parameter list '513' in command substitution called on standard input ``` and now it is ``` fish: Too much data emitted by command substitution so it was discarded set -l x (string repeat -n $argv x) ^ in function 'subme' with arguments '513' in command substitution ``` See #5434.
This commit is contained in:
parent
975023faf2
commit
7095de628c
@ -405,6 +405,7 @@ void parser_t::stack_trace_internal(size_t block_idx, wcstring *buff) const {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Print where the function is called.
|
||||||
const wchar_t *file = b->src_filename;
|
const wchar_t *file = b->src_filename;
|
||||||
|
|
||||||
if (file) {
|
if (file) {
|
||||||
@ -413,9 +414,9 @@ void parser_t::stack_trace_internal(size_t block_idx, wcstring *buff) const {
|
|||||||
} else if (is_within_fish_initialization()) {
|
} else if (is_within_fish_initialization()) {
|
||||||
append_format(*buff, _(L"\tcalled during startup\n"));
|
append_format(*buff, _(L"\tcalled during startup\n"));
|
||||||
} else {
|
} else {
|
||||||
append_format(*buff, _(L"\tcalled on standard input\n"));
|
// This one is way too noisy
|
||||||
|
// append_format(*buff, _(L"\tcalled on standard input\n"));
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Recursively print the next block.
|
// Recursively print the next block.
|
||||||
|
@ -15,11 +15,8 @@ fish: Too much data emitted by command substitution so it was discarded
|
|||||||
|
|
||||||
set -l x (string repeat -n $argv x)
|
set -l x (string repeat -n $argv x)
|
||||||
^
|
^
|
||||||
in function 'subme'
|
in function 'subme' with arguments '513'
|
||||||
called on standard input
|
|
||||||
with parameter list '513'
|
|
||||||
in command substitution
|
in command substitution
|
||||||
called on standard input
|
|
||||||
|
|
||||||
####################
|
####################
|
||||||
# Make sure output from builtins outside of command substitution is not affected
|
# Make sure output from builtins outside of command substitution is not affected
|
||||||
|
Loading…
x
Reference in New Issue
Block a user