]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - bin/sh/tests/builtins/local5.0
Update mandoc to 20160116
[FreeBSD/FreeBSD.git] / bin / sh / tests / builtins / local5.0
1 # $FreeBSD$
2
3 f() {
4         local PATH IFS elem
5         IFS=:
6         for elem in ''$PATH''; do
7                 PATH=/var/empty/$elem:$PATH
8         done
9         ls -d / >/dev/null
10 }
11
12 p1=$(command -v ls)
13 f
14 p2=$(command -v ls)
15 [ "$p1" = "$p2" ]