My understanding was that one could not control the file descriptor (integer) assigned by the OS when opening a new file using open(). How then is it possible in a bash shell to assign a specific file descriptor using a command like
exec 5>&1
(I suppose I could find out by reading the bash sources...)