:: Re: [DNG] Wifi device names: was sy…
Etusivu
Poista viesti
Vastaa
Lähettäjä: Ian Zimmerman
Päiväys:  
Vastaanottaja: dng
Aihe: Re: [DNG] Wifi device names: was systemd is haunting me
On 2016-01-31 17:56 -0500, Steve Litt wrote:

> IIRC -eq is for numbers only, not strings. I put doublequotes around
> each side of the == to make sure it's a string comparison. I
> consistently do that unless there's a reason I actually want numbers
> to add and subtract from.


Careful: I know of at least one program (otherwise well behaved) which
generates numbers in the format 001, 002 etc. I assume (but I have not
tested) that "test 001 -eq 1" succeeds, while "test 001 == 1" fails.

--
Please *no* private copies of mailing list or newsgroup messages.
Rule 420: All persons more than eight miles high to leave the court.