[Top][All Lists]

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

Re: set -x output of test operator is irretating

From: Bob Proulx
Subject: Re: set -x output of test operator is irretating
Date: Sat, 2 Aug 2008 08:53:04 -0400
User-agent: Mutt/1.5.13 (2006-08-11)

Chet Ramey wrote:
> Bob Proulx wrote:
> >Of course that makes sense for the "==" and "!=" cases.  But is that
> >true even for the "=" case?  For the "=" case I thought it was
> >"STRING1 = STRING2" and not "STRING = PATTERN".
> `=' and `==' are always equivalent.  When used in the test/[ command,
> they match strings.  In the [[ conditional command, they match patterns.

Ah..., so the real underlying issue was actually the use of [[ ... ]]
instead of [ ... ] which had escaped my attention and changed the
meaning.  The trace output wouldn't have quoted the right hand side
parts if [ ... ] had been used.  Gotcha.


reply via email to

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