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

Date: Mon, 28 Mar 94 13:56:13 CST
From: gilligan AT cs1 DOT bradley DOT edu (Edward Henigin)
To: djgpp AT sun DOT soe DOT clarkson DOT edu
Subject: Re: 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.
>

	likewise under bash on SunOs 4.1, argv[0] contains the name of the
program as it was invoked, not its full pathname.

	ed

--
Explosions are compressions of time.  --- Frank Herbert
ed -- gilligan AT cs1 DOT bradley DOT edu

- Raw text -


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