mirror of
https://github.com/fish-shell/fish-shell.git
synced 2024-11-22 12:41:08 +08:00
Remove usage of env -u
`env -u` is not supported on all platforms we support (e.g. macOS/OS X 10.10). We don't need these variables erased, blanked works just fine.
This commit is contained in:
parent
4b840075f4
commit
a3e0d64e88
|
@ -995,8 +995,8 @@ set -e nonevent
|
|||
# CHECK: ONEVENT VARIABLE ERASE nonevent
|
||||
|
||||
mkdir -p empty
|
||||
env -u XDG_CONFIG_HOME HOME=$PWD/empty LC_ALL=en_US.UTF-8 $FISH -c 'set -Ux LC_ALL en_US.UTF-8'
|
||||
env -u XDG_CONFIG_HOME HOME=$PWD/empty LC_ALL=en_US.UTF-8 $FISH -c 'set -S LC_ALL'
|
||||
env XDG_CONFIG_HOME= HOME=$PWD/empty LC_ALL=en_US.UTF-8 $FISH -c 'set -Ux LC_ALL en_US.UTF-8'
|
||||
env XDG_CONFIG_HOME= HOME=$PWD/empty LC_ALL=en_US.UTF-8 $FISH -c 'set -S LC_ALL'
|
||||
# CHECK: $LC_ALL: set in universal scope, exported, with 1 elements
|
||||
# CHECK: $LC_ALL[1]: |en_US.UTF-8|
|
||||
# CHECK: $LC_ALL: originally inherited as |en_US.UTF-8|
|
||||
|
|
Loading…
Reference in New Issue
Block a user