[lug] Bizarre behaviour? XTerm runs test program?

rm at fabula.de rm at fabula.de
Wed Jul 6 02:48:21 MDT 2005


On Tue, Jul 05, 2005 at 05:45:47PM -0500, Hugh Brown wrote:
> If you changed your path, it may have picked up the little program named
> test.
> 
> A lot of shell scripts use test or [ ] to check various parameters.
> This bit me once a long time ago, I was writing a little test program
> and named it test and couldn't figure out why I couldn't get it to run
> like I thought it should.

This is a classic Unix beginning programmers gotcha ;-) Never name
programs 'test' (or 'ls' or 'cd' ...).
 
 Cheers RalfD

> Hugh
> 
> 
> On Tue, 2005-07-05 at 18:23 -0400, Gordon Golding wrote:
> > Here is something cute.  
> > 
> > Signed on with XTerm.  A little program that was just lying around called "test" automatically started up in the window.
> > 
> > Anybody seen anything like that before?
> > 
> -- 
> Hugh Brown <hugh at math.byu.edu>
> 
> _______________________________________________
> Web Page:  http://lug.boulder.co.us
> Mailing List: http://lists.lug.boulder.co.us/mailman/listinfo/lug
> Join us on IRC: lug.boulder.co.us port=6667 channel=#colug



More information about the LUG mailing list