Grégory Joseph wrote:

> On 01 Mar 2011, at 16:12, Nils Breunese wrote:
>
>> Grégory Joseph wrote:
>>
>>> I'm probably to blame for this problem. I'm pretty much clueless when it 
>>> comes to bash variations; I always have to look up some reference to write 
>>> if statements ;) I found the -a test here: 
>>> http://tldp.org/LDP/Bash-Beginners-Guide/html/sect_07_01.html - and assumed 
>>> it was standard. Is there an alternative ?
>>
>> I'd try -e (also listed in the same table on the URL you mentioned).
>
> Thanks! -f also seems to work well. Not sure that really has any added value 
> but eh.

-e tests for existence, -f checks for existence and whether it's a regular 
file. That means that -f will for instance return false for a symbolic link. 
I'd go with -e in this case.

Nils.
------------------------------------------------------------------------
 VPRO   www.vpro.nl
------------------------------------------------------------------------


----------------------------------------------------------------
For list details see
http://www.magnolia-cms.com/home/community/mailing-lists.html
To unsubscribe, E-mail to: <[email protected]>
----------------------------------------------------------------

Reply via email to