Bash shells often employ file descriptors numbered 10 or higher when handling input/output redirection for standard streams (stdin, stdout, stderr). This behavior might seem arbitrary, especially when compared to how other file descriptors are managed. This article delves into the reasons behind this specific implementation detail in Bash's io-redirection mechanism.
Share this article
Programmingbashfile-descriptorsio-redirectionlinuxshell scripting
Comments