On 8/7/07, Daniel Stone <[EMAIL PROTECTED]> wrote:
> On Tue, Aug 07, 2007 at 02:03:19PM -0700, Dan Nicholson wrote:
> > Actually, I think the problem here is that `test' on Solaris sh can't
> > handle -e. Just use -f instead. It respects real files or symlinks.
>
> -f on zsh/bash, at least, is regular files only, and not symlinks, hence
> the use of -L also.

Hmm, on bash it seems to work for me. Can't hurt, though.

$ bash
$ touch foo
$ ln -svf foo bar
`bar' -> `foo'
$ [ -f bar ]
$ echo $?
0

--
Dan

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
_______________________________________________
Mesa3d-dev mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mesa3d-dev

Reply via email to