[lug] hack or just error?

Kenneth D Weinert kenw at quarter-flash.com
Tue May 25 21:06:49 MDT 2010


On 05/25/2010 08:40 PM, stimits at comcast.net wrote:
> Rofl! What a terrible name for a file...I guess they had too much beer
> that night :P

Well, the ':' is what threw me - I guess I read it wrong.

It's actually why you can write:

if [ -z $VAR ]

instead of

if test -z $VAR

It's been that way for a *really* long time.


> D. Stimits, stimits AT comcast DOT net
> ...
> On Wed, 26 May 2010 01:51:44 +0000 (UTC) stimits at comcast.net wrote: >
> I'm trying to find out how an old system (FC5) got a file > in /usr/bin,
> '[:' It's the test command. It's in the 'coreutils' package. rpm -qf
> /usr/bin/\[ kevin
>
>
>
> _______________________________________________
> Web Page:  http://lug.boulder.co.us
> Mailing List: http://lists.lug.boulder.co.us/mailman/listinfo/lug
> Join us on IRC: irc.hackingsociety.org port=6667 channel=#hackingsociety


-- 
Ken Weinert

I'm a Denver-based programmer looking for full-time employment. I have
20 years experience in C, C++, and Linux. My resume can be found on my
LinkedIn profile: http://www.linkedin.com/pub/ken-weinert/2/922/791
Let me know how I can help your business succeed.



More information about the LUG mailing list