bug-bash
[Top][All Lists]
Advanced

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

Re: [ -l linkfile ] test


From: Martin MOKREJŠ
Subject: Re: [ -l linkfile ] test
Date: Sun, 22 Dec 2002 10:44:26 +0100 (CET)

On Sat, 21 Dec 2002, Paul Jarc wrote:

Thanks for quick answer. But why couldn't be it a default? Don't we want
bash to be good replacement for other shells? ;)


> 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
>

-- 
Martin Mokrejs <mmokrejs@natur.cuni.cz>, <m.mokrejs@gsf.de>
PGP5.0i key is at http://www.natur.cuni.cz/~mmokrejs
MIPS / Institute for Bioinformatics <http://mips.gsf.de>
GSF - National Research Center for Environment and Health
Ingolstaedter Landstrasse 1, D-85764 Neuherberg, Germany
tel.: +49-89-3187 3683 , fax: +49-89-3187 3585




reply via email to

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