mirror of
https://github.com/fish-shell/fish-shell.git
synced 2024-12-21 07:03:41 +08:00
1e858eae35
This demonstrates that we only write control sequences when interactive.
17 lines
208 B
Fish
17 lines
208 B
Fish
# RUN: %fish %s
|
|
|
|
function getenvs
|
|
env | string match FISH_ENV_TEST_\*
|
|
end
|
|
|
|
getenvs
|
|
# No output
|
|
|
|
set -x FISH_ENV_TEST_1 abc
|
|
getenvs
|
|
# CHECK: FISH_ENV_TEST_1=abc
|
|
|
|
set -e FISH_ENV_TEST_1
|
|
getenvs
|
|
# No output
|