delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1994/03/28/15:34:34

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.


- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019