Files
fish-shell/tests/checks/__fish_macos_set_env.fish
Johannes Altmanninger 6c267e88a1 __fish_macos_set_env: match macOS "path_helper" if MANPATH is overridden
Try to match
b33f386ac4/path_helper/path_helper.c
1. don't add empty segments
2. For MANPATH specifically, always add an empty segment at the end

See #10684
2025-11-01 12:45:17 +01:00

17 lines
354 B
Fish

# RUN: %fish %s
mkdir etc
{
echo /usr/share/man
echo /usr/local/share/man
} >etc/manpaths
mkdir etc/manpaths.d
MANPATH=:/custom/man-path \
__fish_macos_set_env MANPATH etc/manpaths etc/manpaths.d
string join \n entry=$MANPATH
# CHECK: entry=/usr/share/man
# CHECK: entry=/usr/local/share/man
# CHECK: entry=/custom/man-path
# CHECK: entry=