Date: Mon, 28 Mar 94 14:58:20 -0500 From: dj AT ctron DOT com (DJ Delorie) To: jon AT halsp DOT hitachi DOT com Cc: dave AT babel DOT ho DOT att DOT com, djgpp AT sun DOT soe DOT clarkson DOT edu Subject: Re: argv[0] problem (unwanted path in printout) > >Also, I think UNIX C runtime libraries DON'T put the full path name in > >argv[0]. Argv[0] contains whatever the program that called exec() > >puts in it. On UNIX, ksh seems to put whatever the user typed, not > >the fully qualified path. I don't know about other shells. > > Some other Unix shells: ksh puts full path for scripts ($0) but what you typed for binary programs (argv[0]). Very disappointing.