xref: /freebsd/bin/sh/tests/builtins/local5.0 (revision a03411e84728e9b267056fd31c7d1d9d1dc1b01e)
1
2f() {
3	local PATH IFS elem
4	IFS=:
5	for elem in ''$PATH''; do
6		PATH=/var/empty/$elem:$PATH
7	done
8	ls -d / >/dev/null
9}
10
11p1=$(command -v ls)
12f
13p2=$(command -v ls)
14[ "$p1" = "$p2" ]
15