Lines Matching refs:PATH

48 p=$PATH
50 PATH=$FPATH:$p
53 PATH=$FPATH:$p
56 PATH=$FPATH:$p
59 PATH=$FPATH:$p
64 PATH=$FPATH:$p
69 PATH=$FPATH:$p
71 PATH=$p
72 (PATH="/bin")
73 [[ $($SHELL -c 'print -r -- "$PATH"') == "$PATH" ]] || err_exit 'export PATH lost in subshell'
79 typeset -x PATH=$tmp
82 path=\$PATH
83 unset PATH
85 PATH=\$path
88 [[ $($SHELL ./bug1 2>/dev/null) == ok ]] || err_exit "PATH in function not working"
92 typeset PATH=/usr/bin
93 typeset -x PATH=''
96 PATH=/usr/bin
97 : $(PATH=/usr/bin getconf PATH)
111 if [[ $(ls -d . 2>/dev/null) == . && $(PATH=/bin:/usr/bin:$PATH ls -d . 2>/dev/null) != . ]]
112 then err_exit 'PATH export in command substitution not working'
116 PATH=${PATH%.}
117 PATH=${PATH%:}
118 PATH=${PATH#.}
119 PATH=${PATH#:}
120 path=$PATH
135 for PATH in $path :$path $path: .:$path $path: $path:. $PWD::$path $PWD:.:$path $path:$PWD $path:.:$PWD
137 # print path=$PATH $(whence date)
138 # print path=$PATH $(whence "$cmd")
143 if [[ $(PATH=:/usr/bin; date) != 'hello' ]]
147 PATH=$PWD:
169 got=$($SHELL -c "unset FPATH; PATH=/dev/null; $cmd" 2>&1)
170 [[ $got == $exp ]] && err_exit "$cmd as last command should not find ./$cmd with PATH=/dev/null"
171 got=$($SHELL -c "unset FPATH; PATH=/dev/null; $cmd" 2>&1)
172 [[ $got == $exp ]] && err_exit "$cmd should not find ./$cmd with PATH=/dev/null"
174 got=$(unset FPATH; PATH=/dev/null; whence ./$cmd)
175 [[ $got == $exp ]] || err_exit "whence $cmd should find ./$cmd with PATH=/dev/null"
177 got=$(unset FPATH; PATH=/dev/null; whence $PWD/$cmd)
178 [[ $got == $exp ]] || err_exit "whence \$PWD/$cmd should find ./$cmd with PATH=/dev/null"
182 got=$($SHELL -c "unset FPATH; PATH=/dev/null; whence ./notfound" 2>&1)
184 got=$($SHELL -c "unset FPATH; PATH=/dev/null; whence $PWD/notfound" 2>&1)
188 PATH=/dev/null
194 [[ $got == $exp ]] && err_exit "$cmd as last command should not find ./$cmd with PATH=/dev/null"
196 [[ $got == $exp ]] && err_exit "$cmd should not find ./$cmd with PATH=/dev/null"
199 [[ $got == $exp ]] || err_exit "whence ./$cmd should find ./$cmd with PATH=/dev/null"
202 [[ $got == $exp ]] || err_exit "whence \$PWD/$cmd should find ./$cmd with PATH=/dev/null"
210 PATH=$d:
216 PATH=:$d
220 PATH=$d: whence rm > /dev/null
227 if [[ $(PATH=$PWD/bin tst 2>/dev/null) != ok ]]
228 then err_exit '(PATH=$PWD/bin foo) does not find $PWD/bin/foo'
232 then PATH=
234 then err_exit 'setting PATH to Null not working'
236 unset PATH
241 PATH=/dev:$tmp
243 typeset foo=$(PATH=/xyz:/abc :)
245 [[ $x != "$y" ]] && err_exit 'PATH not restored after command substitution'
248 PATH=/bin
249 PATH=$(getconf PATH)
251 PATH=.:$PWD:${x%/ls}
252 [[ $(whence ls) == "$x" ]] || err_exit 'PATH search bug when .:$PWD in path'
253 PATH=$PWD:.:${x%/ls}
254 [[ $(whence ls) == "$x" ]] || err_exit 'PATH search bug when :$PWD:. in path'
266 # universe via PATH
271 [[ $(PATH=/usr/ucb/bin:/usr/bin echo -n ucb) == 'ucb' ]] || err_exit "ucb universe echo ignores -n option"
272 [[ $(PATH=/usr/xpg/bin:/usr/bin echo -n att) == '-n att' ]] || err_exit "att universe echo does not ignore -n option"
274 PATH=$path