mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-04-20 07:51:14 -03:00
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
17 lines
354 B
Fish
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=
|