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

Re: [leafnode-list] ANNOUNCEMENT: leafnode 1.9.16ma1

Bruno Rohee <br@xxxxxxxxxx> writes:

[test STR1 == STR2 in bash]

> It would be even nicer if the FSF fixed bash to not accept that in
> bourme shell mode, did you made a bug report ?

Hm. bash is documented so:

     True if the strings are equal.  `=' may be used in place of `=='.

and that's for the test builtin. A standard Bourne shell does not have
test, but relies on an external command. So you cannot really blame the
bash makers IMO.

Go for \test in bash (maybe alias it?). GNU test (sh-utils) behaves like
Solaris 7's test here, in that it uses "=" instead of "==" - which
really is a bash builtin special.

I don't think the FSF would change that == issue until bash 3 were
coming up because they would break bash2 scripts otherwise.

Matthias Andree

                Where do you think you're going today?

leafnode-list@xxxxxxxxxxxxxxxxxxxxxxxxxxxx -- mailing list for leafnode
To unsubscribe, send mail with "unsubscribe" in the subject to the list