[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH] env: add -n/--name option
From: |
Matheus Afonso Martins Moreira |
Subject: |
[PATCH] env: add -n/--name option |
Date: |
Thu, 02 Mar 2023 13:22:24 -0300 |
> BTW it seems like SHLVL can be unset here.
I tried it but it doesn't seem to be the case.
Am I doing it incorrectly?
$ env -i bash -c 'exec -a program ./program'
program
PWD=/data/data/com.termux/files/home/dev/coreutils
SHLVL=0
$ env -i bash -c 'unset SHLVL; unset PWD; exec -a program ./program'
program
SHLVL=0
> Perhaps --title would be more appropriate, given "name" is mentioned
> quite a bit already in the description.
I can send an updated patch!
May I also suggest --argv0 option?
> An edge case is we may want to support
> allowing to specify a NULL argv[0].
Yes. How should such a NULLL value be denoted in the command line?
Should there be a separare --null-argv0 option?
Thank you for the feedback.
Matheus Moreira