fish-shell/src
Kurtis Rader dc6b538f56 improve set PATH warning message
This modifies the code path for `set PATH` and `set CDPATH` to emit an
easier to understand warning when an entry in those vars is invalid. For
example

$ set PATH $PATH /tmp/arglebargle
set: Warning: $PATH entry "/tmp/arglebargle": No such file or directory
$ mkdir /tmp/d
$ chmod 0 /tmp/d
$ set PATH $PATH /tmp/d
set: Warning: $PATH entry "/tmp/d": Permission denied
$ touch /tmp/x
$ set PATH $PATH /tmp/x
set: Warning: $PATH entry "/tmp/x": Not a directory

Fixes #3450
2016-10-16 19:58:57 -07:00
..
autoload.cpp simplify oclint error suppression for scoped_lock 2016-07-20 22:30:58 -07:00
autoload.h eliminate many "unused parameter" warnings 2016-10-09 14:38:26 -07:00
builtin.cpp fix more style bogosities that have crept in 2016-10-10 19:52:22 -07:00
builtin.h eliminate many "unused parameter" warnings 2016-10-09 14:38:26 -07:00
builtin_commandline.cpp simplify oclint error suppression for scoped_lock 2016-07-20 22:30:58 -07:00
builtin_commandline.h restyle builtin modules to match project style 2016-04-26 21:58:59 -07:00
builtin_complete.cpp make kill/pkill completions more robust (#3200) 2016-07-07 18:44:35 -07:00
builtin_complete.h restyle builtin modules to match project style 2016-04-26 21:58:59 -07:00
builtin_jobs.cpp Revert "Tighten up empty string checks." 2016-10-01 17:21:40 -07:00
builtin_jobs.h restyle builtin modules to match project style 2016-04-26 21:58:59 -07:00
builtin_printf.cpp eliminate many "unused parameter" warnings 2016-10-09 14:38:26 -07:00
builtin_printf.h restyle builtin modules to match project style 2016-04-26 21:58:59 -07:00
builtin_set.cpp improve set PATH warning message 2016-10-16 19:58:57 -07:00
builtin_set.h restyle builtin modules to match project style 2016-04-26 21:58:59 -07:00
builtin_set_color.cpp fix null pointer deref clang's static analyzer believes in 2016-10-07 15:43:59 -07:00
builtin_set_color.h restyle builtin modules to match project style 2016-04-26 21:58:59 -07:00
builtin_string.cpp Make IWYU output in lint.cpp less messy 2016-06-23 17:26:08 -07:00
builtin_string.h restyle builtin modules to match project style 2016-04-26 21:58:59 -07:00
builtin_test.cpp eliminate many "unused parameter" warnings 2016-10-09 14:38:26 -07:00
builtin_test.h restyle builtin modules to match project style 2016-04-26 21:58:59 -07:00
builtin_ulimit.cpp add (or restore) config.h to all files 2016-05-18 22:30:21 +00:00
builtin_ulimit.h restyle builtin modules to match project style 2016-04-26 21:58:59 -07:00
color.cpp Improve compatibility with 0-16 color terminals. 2016-07-24 17:02:29 -07:00
color.h Make IWYU output in lint.cpp less messy 2016-06-23 17:26:08 -07:00
common.cpp eliminate many "unused parameter" warnings 2016-10-09 14:38:26 -07:00
common.h fix more style bogosities that have crept in 2016-10-10 19:52:22 -07:00
complete.cpp Fix building on Android by avoiding getpwent() (#3441) 2016-10-15 17:20:53 -07:00
complete.h Make IWYU output in lint.cpp less messy 2016-06-23 17:26:08 -07:00
env.cpp fix use after free bug 2016-10-16 12:51:31 -07:00
env.h Make IWYU output in lint.cpp less messy 2016-06-23 17:26:08 -07:00
env_universal_common.cpp eliminate many "unused parameter" warnings 2016-10-09 14:38:26 -07:00
env_universal_common.h Make IWYU output in lint.cpp less messy 2016-06-23 17:26:08 -07:00
event.cpp eliminate signed/unsigned comparison warnings 2016-10-09 14:36:08 -07:00
event.h Make IWYU output in lint.cpp less messy 2016-06-23 17:26:08 -07:00
exec.cpp eliminate many "unused parameter" warnings 2016-10-09 14:38:26 -07:00
exec.h Make IWYU output in lint.cpp less messy 2016-06-23 17:26:08 -07:00
expand.cpp eliminate many "unused parameter" warnings 2016-10-09 14:38:26 -07:00
expand.h Make IWYU output in lint.cpp less messy 2016-06-23 17:26:08 -07:00
fallback.cpp eliminate many "unused parameter" warnings 2016-10-09 14:38:26 -07:00
fallback.h Remove nan() fallback 2016-10-09 07:09:52 -07:00
fish.cpp make style-all C++ style cleanup 2016-10-04 20:06:14 -07:00
fish_indent.cpp eliminate warnings in auxiliary programs 2016-10-09 14:43:25 -07:00
fish_key_reader.cpp eliminate warnings in auxiliary programs 2016-10-09 14:43:25 -07:00
fish_tests.cpp fix a couple of "unused parameter" warnings 2016-10-09 19:52:02 -07:00
fish_version.cpp restyle fish modules to match project style 2016-04-30 19:52:13 -07:00
fish_version.h restyle fish modules to match project style 2016-04-30 19:52:13 -07:00
function.cpp eliminate many "unused parameter" warnings 2016-10-09 14:38:26 -07:00
function.h revert the --shadow-builtin flag 2016-08-24 22:56:19 -07:00
highlight.cpp eliminate many "unused parameter" warnings 2016-10-09 14:38:26 -07:00
highlight.h Make IWYU output in lint.cpp less messy 2016-06-23 17:26:08 -07:00
history.cpp fix more style bogosities that have crept in 2016-10-10 19:52:22 -07:00
history.h add a flag to limit history search results 2016-09-23 19:43:58 -07:00
input.cpp eliminate signed/unsigned comparison warnings 2016-10-09 14:36:08 -07:00
input.h Make IWYU output in lint.cpp less messy 2016-06-23 17:26:08 -07:00
input_common.cpp fix handling input in the C locale 2016-08-12 20:33:43 -07:00
input_common.h fix handling input in the C locale 2016-08-12 20:33:43 -07:00
intern.cpp simplify oclint error suppression for scoped_lock 2016-07-20 22:30:58 -07:00
intern.h restyle intern module to match project style 2016-05-01 20:28:46 -07:00
io.cpp add (or restore) config.h to all files 2016-05-18 22:30:21 +00:00
io.h Make IWYU output in lint.cpp less messy 2016-06-23 17:26:08 -07:00
iothread.cpp eliminate many "unused parameter" warnings 2016-10-09 14:38:26 -07:00
iothread.h restyle iothread module to match project style 2016-05-01 21:54:54 -07:00
kill.cpp fix random lint issues 2016-05-29 22:24:29 -07:00
kill.h restyle kill module to match project style 2016-05-01 22:18:59 -07:00
lru.h fix more style bogosities that have crept in 2016-10-10 19:52:22 -07:00
output.cpp Use the nonbright variant of brights on lame terms 2016-10-10 13:53:11 -07:00
output.h Stop swallowing the cartesian product 2016-07-24 17:56:34 -07:00
pager.cpp eliminate many "unused parameter" warnings 2016-10-09 14:38:26 -07:00
pager.h eliminate signed/unsigned comparison warnings 2016-10-09 14:36:08 -07:00
parse_constants.h Restyle touched .cpp files 2016-06-12 11:34:35 -07:00
parse_execution.cpp eliminate many "unused parameter" warnings 2016-10-09 14:38:26 -07:00
parse_execution.h Make IWYU output in lint.cpp less messy 2016-06-23 17:26:08 -07:00
parse_productions.cpp eliminate more "unused parameter" warnings 2016-10-09 14:41:56 -07:00
parse_productions.h Make IWYU output in lint.cpp less messy 2016-06-23 17:26:08 -07:00
parse_tree.cpp Rename things to avoid conflicts with headers 2016-07-01 02:48:50 -07:00
parse_tree.h Make IWYU output in lint.cpp less messy 2016-06-23 17:26:08 -07:00
parse_util.cpp eliminate signed/unsigned comparison warnings 2016-10-09 14:36:08 -07:00
parse_util.h Make IWYU output in lint.cpp less messy 2016-06-23 17:26:08 -07:00
parser.cpp Ensure we continue to cover enums in switches 2016-07-30 13:10:21 -07:00
parser.h Ensure we continue to cover enums in switches 2016-07-30 13:10:21 -07:00
parser_keywords.cpp fix some style bogosities that crept in 2016-05-27 14:44:30 -07:00
parser_keywords.h Make IWYU output in lint.cpp less messy 2016-06-23 17:26:08 -07:00
path.cpp add (or restore) config.h to all files 2016-05-18 22:30:21 +00:00
path.h Make IWYU output in lint.cpp less messy 2016-06-23 17:26:08 -07:00
postfork.cpp eliminate many "unused parameter" warnings 2016-10-09 14:38:26 -07:00
postfork.h Make IWYU output in lint.cpp less messy 2016-06-23 17:26:08 -07:00
print_help.cpp add (or restore) config.h to all files 2016-05-18 22:30:21 +00:00
print_help.h restyle proc module to match project style 2016-05-02 22:07:58 -07:00
proc.cpp eliminate many "unused parameter" warnings 2016-10-09 14:38:26 -07:00
proc.h Make IWYU output in lint.cpp less messy 2016-06-23 17:26:08 -07:00
reader.cpp eliminate many "unused parameter" warnings 2016-10-09 14:38:26 -07:00
reader.h eliminate many "unused parameter" warnings 2016-10-09 14:38:26 -07:00
sanity.cpp add (or restore) config.h to all files 2016-05-18 22:30:21 +00:00
sanity.h restyle sanity & screen module to match project style 2016-05-03 12:53:54 -07:00
screen.cpp fix more style bogosities that have crept in 2016-10-10 19:52:22 -07:00
screen.h Make IWYU output in lint.cpp less messy 2016-06-23 17:26:08 -07:00
signal.cpp eliminate many "unused parameter" warnings 2016-10-09 14:38:26 -07:00
signal.h Make IWYU output in lint.cpp less messy 2016-06-23 17:26:08 -07:00
tokenizer.cpp Ensure we continue to cover enums in switches 2016-07-30 13:10:21 -07:00
tokenizer.h Make IWYU output in lint.cpp less messy 2016-06-23 17:26:08 -07:00
utf8.cpp fix more style bogosities that have crept in 2016-10-10 19:52:22 -07:00
utf8.h Fix wide char related tests on Cygwin 2016-05-26 20:24:03 -07:00
util.cpp fix random lint issues 2016-05-29 22:24:29 -07:00
util.h restyle remaining modules to match project style 2016-05-03 16:09:45 -07:00
wcstringutil.cpp fix some style bogosities that crept in 2016-05-27 14:44:30 -07:00
wcstringutil.h Be a bit more consistent and proper. 2016-06-05 21:32:57 -07:00
wgetopt.cpp fix lint error in wgettext() 2016-06-01 22:19:03 -07:00
wgetopt.h Restyle touched .cpp files 2016-06-12 11:34:35 -07:00
wildcard.cpp make style-all C++ style cleanup 2016-10-04 20:06:14 -07:00
wildcard.h Make IWYU output in lint.cpp less messy 2016-06-23 17:26:08 -07:00
wutil.cpp Check for struct stat.st_ctime_nsec before using 2016-10-10 19:33:25 -07:00
wutil.h Revert "Tighten up empty string checks." 2016-10-01 17:21:40 -07:00