Skip to content

Commit

Permalink
Add test that confirms behavior when PATH is unset
Browse files Browse the repository at this point in the history
- Path will likely contain more results from using `confstr`, this checks only
    the default
  • Loading branch information
henrikhorluck committed Aug 20, 2023
1 parent a4267e4 commit 3205278
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tests/checks/broken-config.fish
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,9 @@ end
# should not crash or segfault in the presence of an invalid locale
LC_ALL=hello echo hello world
# CHECK: hello world

# FIXME: Rationalize behavior when PATH is explicitly unset, should this not behave like PATH=""?
# "" is threated like ".", see https://github.com/fish-shell/fish-shell/issues/3914
env -u PATH $fish --no-config -c 'contains -- /usr/bin $PATH; and contains -- /bin $PATH'
and echo PATH has something when unset
# CHECK: PATH has something when unset

0 comments on commit 3205278

Please sign in to comment.