[Bug 1952584] Re: bash exec command unwanted behaviour
Chris Guiver
1952584 at bugs.launchpad.net
Mon Nov 29 11:20:56 UTC 2021
Thank you for reporting this bug to Ubuntu.
Ubuntu 16.04 (xenial) reached end-of-standard-life on April 29, 2021.
See this document for currently supported Ubuntu releases:
https://wiki.ubuntu.com/Releases
We appreciate that this bug may be old and you might not be interested
in discussing it any more. But if you are then please upgrade to the
latest Ubuntu version and re-test. If you then find the bug is still
present in the newer Ubuntu version, please add a comment here telling
us which new version it is in.
When reporting bugs in the future please use apport by using 'ubuntu-
bug' and the name of the package affected. You can learn more about this
functionality at https://wiki.ubuntu.com/ReportingBugs.
** Changed in: bash (Ubuntu)
Status: New => Incomplete
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to bash in Ubuntu.
https://bugs.launchpad.net/bugs/1952584
Title:
bash exec command unwanted behaviour
Status in bash package in Ubuntu:
Incomplete
Bug description:
(GNU bash 4.3.46)
(ubuntu 16.04 LTS)
Consider you have out.txt on current dir.
-------
>exec 123456789012>out.txt
bash: exec: 123456789012: not found
-------
exec command prints indicated error for large numbers that is supposed to use as a fd but redirects /proc/$$/fd/1 to out.txt silently.
Additionally,
-------
>exec 1234567890>out.txt
bash: 123456789: Bad file descriptor
-------
For large numbers but not that large (I don't inspect the limits!), exec command rejects fd number but silently adds a new fd to current bash process. In every execution of the command, bash adds a new fd to itself again and again.
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/bash/+bug/1952584/+subscriptions
More information about the foundations-bugs
mailing list