Alfredo Braunstein wrote:

> Andreas Vox wrote:
> 
>> Alfredo Braunstein <[EMAIL PROTECTED]> writes:
>> 
>>> what about [ `dirname "$1"` -ef `dirname "$2"` ] ?
>>> 
>>> No idea about portability and such.
>> 
>> Works on MacOSX (bash).
> 
> forgot to mention, bash too ;-)
>  
>> Apparently the default on MacOSX is "pwd -L" rather than "pwd -P" as
>> stated in the manpage, so the original script would not work on Mac.
> 
> Angus, note also that this solution identifies symlinked directories,
> while yours doesn't. (I suppose that you want them identified?)

I guess. Thanks, both, for the pointers.

-- 
Angus

Reply via email to