delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1994/03/28/10:29:51

Date: Mon, 28 Mar 94 09:57:19 EST
From: dave AT babel DOT ho DOT att DOT com (Dave Hayden 908- 946-1107)
To: djgpp AT sun DOT soe DOT clarkson DOT edu
Subject: Re: argv[0] problem(unwanted path in printout)

I believe it IS possible to have an argv[0] with no '/' or '\' in it.
Consider a path like c:hello.

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.

Dave Hayden


- Raw text -


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