comp.lang.ada
 help / color / mirror / Atom feed
From: nasser@apldbio.com (Nasser Abbasi)
Subject: test name clash on unix. was: GNAT 301a with Win95
Date: 1996/06/29
Date: 1996-06-29T00:00:00+00:00	[thread overview]
Message-ID: <nhspbergdo.fsf_-_@paralysys> (raw)
In-Reply-To: 01bb5da2.dc327500$33668acd@iris.gomontana.com


   From: dewar@cs.nyu.edu (Robert Dewar)


   ALERT ALERT! don't fall into the remarkably common trap of calling your
   main program test and then trying to execute it with the command

      test

   which in Unix will typically do nothing.

   We get this bug report all the time, once complete with a long diatribe 
   about how GNAT was completely useless.

   (test is an internal shell command in Unix, either use some other name, or
    execute the program using ./test)

   :-)


Yes, good suggestions. Also one can add "." to the $path (edit
the .cshrc or .profile etc..) , make "." be the first in the path, 
and when one invokes test, the shell will first look in . which is 
the default current directory and use your "test" program , not the
one in /usr/bin .

I think it is not very smart of unix to call one of its images such
a generic name as "test" . But again, this is unix, if they did not
do such weired things, they will no longer be unix, but on the other
hand this is why we love unix, it is just different, and can surprise
one at any time, so it makes it interesting and more fun to work with 
it.

thanks,
Nasser

-- 
Nasser Abbasi. C/C++/Ada Solaris. GeneAssist - A client/server application 
for Nucleic acid and protein sequence search and analysis. 
PE-Applied BioSystem division. email:  nasser@apldbio.com   
MSEE(control), MSCS, MSCE, FM(Fide Chess Master 1.e4 !!   1-0 )






  parent reply	other threads:[~1996-06-29  0:00 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1996-06-18  0:00 GNAT 301a with Win95 Darrin
1996-06-19  0:00 ` Tom Griest
1996-06-19  0:00 ` David Hopkins
1996-06-21  0:00   ` Robert Dewar
1996-06-20  0:00 ` Theodore E. Dennison
1996-06-21  0:00   ` Robert Dewar
1996-06-21  0:00   ` Vadim Epmak
1996-06-23  0:00     ` Robert Dewar
1996-06-24  0:00     ` Theodore E. Dennison
1996-06-25  0:00     ` Walter B. Hollman Sr.
1996-06-29  0:00 ` Nasser Abbasi [this message]
1996-06-29  0:00   ` test name clash on unix. was: " Richard Kenner
1996-06-29  0:00   ` Robert Dewar
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox