bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [ -l linkfile ] test


From: Paul Jarc
Subject: Re: [ -l linkfile ] test
Date: Sat, 21 Dec 2002 21:58:52 -0500
User-agent: Gnus/5.090008 (Oort Gnus v0.08) Emacs/21.2 (i686-pc-linux-gnu)

Martin MOKREJŠ <mmokrejs@natur.cuni.cz> wrote:
>   I've found that /sbin/sh on Irix system is somehow weird, and
> understands
>
> if [ -l link ]; then
>   echo "file is a softlink"
> fi
>
>   Is it possible to add this to bash-2.05b?

bash can do the same thing, but spells it -h or -L, not -l.  If you
really need it to recognize -l too, you can add "case 'l':" to test.c
at line 658.


paul



reply via email to

[Prev in Thread] Current Thread [Next in Thread]