2024-04-12 18:19:32 +08:00
|
|
|
# RUN: %fish %s
|
2019-06-29 02:21:59 +08:00
|
|
|
|
|
|
|
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
|