X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f Date: Sun, 27 Nov 2011 16:16:29 -0500 Message-Id: <201111272116.pARLGTjR001505@envy.delorie.com> From: DJ Delorie To: djgpp AT delorie DOT com In-reply-to: <16b04d29-8317-4c7f-929c-1a22a328fa32 AT p9g2000vbb DOT googlegroups DOT com> (message from Georg on Sun, 27 Nov 2011 11:28:22 -0800 (PST)) Subject: Re: argv[0] References: <16b04d29-8317-4c7f-929c-1a22a328fa32 AT p9g2000vbb DOT googlegroups DOT com> Errors-To: nobody AT delorie DOT com There are situations where it does not. argv[] is whatever is passed from the parent process, including argv[0], so if a djgpp process passes "duck" as argv[0], it will be "duck" regardless of what the program that runs is called.