I think your idea of using exec -a '' with no positional arguments to
set it is pretty cool, since exec -a changes the argv[0] of the
invoked process and exec with redirections an no arguments applies
redirections to the current shell permanently!
Not super relevant, but I have a bash loadable
Date:Wed, 24 Jul 2024 13:22:07 + (UTC)
From:morshalev@morsh.c.edafarm-workstations-prod.internal
Message-ID:
<20240904151336.D40A9142EBC@morsh.c.edafarm-workstations-prod.internal>
There is no bug here.
| if source command.sh ; then
| command.sh contain 'set
On 8/31/24 10:43 PM, Lockywolf wrote:
Dear Bash developers,
May I ask for a small feature to be added to bash?
At the moment exec changes IO redirections for the newly started
processes, but if there is no command for exec'ing, it changes those
redirections for the bash process itself.
The exe
Configuration Information [Automatically generated, do not change]:
Machine: x86_64
OS: linux-gnu
Compiler: gcc
Compilation CFLAGS: -DPROGRAM='bash' -DCONF_HOSTTYPE='x86_64'
-DCONF_OSTYPE='linux-gnu' -DCONF_MACHTYPE='x86_64-redhat-linux-gnu'
-DCONF_VENDOR='redhat' -DLOCALEDIR='/usr/share/locale'