Remove stale path validation logic

We used to warn about PATH and CDPATH that are not valid directories,
but only if they contain colons.
However, the warning was a false positive because we would split
those values by colons anyway. So there is nothing left we want to
warn about.

Fixes #8095
This commit is contained in:
Johannes Altmanninger
2021-07-01 23:30:09 +02:00
parent 768a9b1fd3
commit 874fc439dd
2 changed files with 10 additions and 65 deletions

View File

@@ -715,3 +715,13 @@ set --show ""
#CHECKERR: set --show ""
#CHECKERR: ^
#CHECKERR: (Type 'help set' for related documentation)
# Test path splitting
begin
set -l PATH /usr/local/bin:/usr/bin
echo $PATH
# CHECK: /usr/local/bin /usr/bin
set -l CDPATH .:/usr
echo $CDPATH
# CHECK: . /usr
end