mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-26 04:43:10 +00:00
Remove errant profiling enabling
This enabled the profile in fish_setlocale, which caused startup profile to always be on, so ```fish fish --profile file -c 'foo' ``` would show the entire startup as well
This commit is contained in:
parent
08f8983085
commit
2c3894993f
2 changed files with 6 additions and 1 deletions
|
@ -1485,7 +1485,6 @@ pub fn fish_setlocale() {
|
|||
Ordering::Relaxed,
|
||||
);
|
||||
}
|
||||
PROFILING_ACTIVE.store(true);
|
||||
}
|
||||
|
||||
/// Test if the character can be encoded using the current locale.
|
||||
|
|
|
@ -79,6 +79,12 @@ string match -rq "echo thisshouldneverbeintheconfig" < $tmp/full.prof
|
|||
and echo matched
|
||||
# CHECK: matched
|
||||
|
||||
# See that profiling without startup actually gives us just the command
|
||||
$fish --no-config --profile $tmp/nostartup.prof -c 'echo foo'
|
||||
# CHECK: foo
|
||||
count < $tmp/nostartup.prof
|
||||
# CHECK: 2
|
||||
|
||||
$fish --no-config -c 'echo notprinted; echo foo | exec true; echo banana'
|
||||
# CHECKERR: fish: The 'exec' command can not be used in a pipeline
|
||||
# CHECKERR: echo notprinted; echo foo | exec true; echo banana
|
||||
|
|
Loading…
Reference in a new issue