Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 02 Jan 2015 17:36:42 +0000
From:      bugzilla-noreply@freebsd.org
To:        freebsd-ports-bugs@FreeBSD.org
Subject:   [Bug 196435] Prevent @sample keyword from removing user symlinks
Message-ID:  <bug-196435-13-ehbgH6pJBB@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-196435-13@https.bugs.freebsd.org/bugzilla/>
References:  <bug-196435-13@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=196435

--- Comment #7 from Jan Beich <jbeich@vfemail.net> ---
|test -f| isn't reliable

  $ ln -s foo bar
  $ [ -f bar ]; echo $?
  1
  $ touch foo
  $ [ -f bar ]; echo $?
  0

while test(1) mangpage says:

  If file is a symbolic link, test will fully dereference it and then
  evaluate the expression against the file referenced, except for the -h
  and -L primaries.

-- 
You are receiving this mail because:
You are the assignee for the bug.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-196435-13-ehbgH6pJBB>