mailing list of musl libc
 help / color / mirror / code / Atom feed
From: John Regan <saxindustries@gmail.com>
To: musl@lists.openwall.com
Subject: Re: Question about setting argv[0] when manually using dynamic linker
Date: Wed, 17 May 2017 16:22:45 -0500	[thread overview]
Message-ID: <CACBMf30eYQ9TzBr=ROV0Dgq0W0yM2hAjZWTae3H1PAQo2Pw21g@mail.gmail.com> (raw)
In-Reply-To: <CA+qPFcK54S_dqWobitfDqA0Pqi2W4YVfvaS6dqMyE1ufQcaymQ@mail.gmail.com>

[-- Attachment #1: Type: text/plain, Size: 571 bytes --]

On Wed, May 17, 2017 at 4:15 PM, mzpqnxow <musl@mzpqnxow.com> wrote:

> Does the shell built-in "exec" -a app1 /bah/dynamic-loader.so
> /path/to/app1" work or it has the same problem with argv[0] getting reset?
>
>
It looks like argv[0] gets reset. Plus I don't think every shell's built-in
"exec" supports that -a flag. I don't see it mentioned in the POSIX man
page for exec -
http://pubs.opengroup.org/onlinepubs/009604599/utilities/exec.html - nor do
I see anything about it on the dash man page -
https://linux.die.net/man/1/dash, I suspect that's specific to bash.

[-- Attachment #2: Type: text/html, Size: 1490 bytes --]

  reply	other threads:[~2017-05-17 21:22 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-05-17  0:38 John Regan
2017-05-17  9:01 ` u-uy74
2017-05-17 11:00   ` mzpqnxow
2017-05-17 16:07     ` mzpqnxow
2017-05-17 16:16       ` John Regan
2017-05-17 16:24         ` Rich Felker
2017-05-17 19:07           ` u-uy74
2017-05-17 19:16             ` John Regan
2017-05-17 21:10               ` u-uy74
2017-05-17 21:15               ` mzpqnxow
2017-05-17 21:22                 ` John Regan [this message]
2017-07-02 17:36           ` u-uy74
2017-07-04 20:58             ` Rich Felker
2017-07-05  6:01               ` u-uy74
2017-07-09  9:23               ` u-uy74
2017-07-09 12:23                 ` Rich Felker
2017-07-09 14:04                   ` u-uy74

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CACBMf30eYQ9TzBr=ROV0Dgq0W0yM2hAjZWTae3H1PAQo2Pw21g@mail.gmail.com' \
    --to=saxindustries@gmail.com \
    --cc=musl@lists.openwall.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/musl/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).