Can someone make a small fix to mc?
Michal Moskal
malekith at pld-linux.org
Tue Nov 5 17:19:33 CET 2002
On Tue, Nov 05, 2002 at 05:08:26PM +0100, Jarosław Kamper wrote:
> Dnia wto 5. listopad 2002 17:02, Jarosław Kamper napisał:
>
> > [jack at pldworkstation jack]$ ziew=ZIEW && if [ "$ziew" = "" ]; then echo OK;
> > else echo FAILED; fi
> > FAILED
> > [jack at pldworkstation jack]$ echo $SHELL
> > /bin/bash
>
> Uhm...
>
> [jack at pldworkstation jack]$ ziew=ZIEW && if [ "$ziew" == "" ]; then echo
> EMPTY; else echo $ziew; fi
> ZIEW
From test manpage:
STRING1 = STRING2
the strings are equal
Moreover, SUS v2:
s1 = s2
True if the strings s1 and s2 are identical.
So it really doesn't matter what bash accepts and what not. There is no
sign of == in neither manpage nor sus.
--
: Michal Moskal ::::: malekith/at/pld-linux.org : GCS {C,UL}++++$ a? !tv
: PLD Linux ::::::: Wroclaw University, CS Dept : {E-,w}-- {b++,e}>+++ h
More information about the pld-devel-en
mailing list