Visit The New, Modern Unix Linux Community

Search Results

Search: Posts Made By: tetsujin
138,090
Posted By tetsujin
Hey, I was kind of expecting a mod to move the...
Hey, I was kind of expecting a mod to move the discussion - in any case I think further discussion along these lines should take place in a new thread. It'll be easy to find.

Corona: Obviously we...
138,090
Posted By tetsujin
(regarding "cmd <&$fd") It redirects...
(regarding "cmd <&$fd")



It redirects from an open file descriptor. It's conceptually the same operation whether $fd is a numeric file descriptor or some "special file descriptor object".
...
138,090
Posted By tetsujin
I don't limit my answer to that question to the...
I don't limit my answer to that question to the shells that have already been written. Any programmer has the ability to write a new shell, and thus at least the potential to effect some change to...
138,090
Posted By tetsujin
My point is that adding scoped lifetime...
My point is that adding scoped lifetime management to file descriptors in a shell wouldn't fall nearly as far outside the current model as you suggest.



So what's the problem? I don't see how...
138,090
Posted By tetsujin
Wrong. The other time it knows it's done with a...
Wrong. The other time it knows it's done with a file descriptor is when that file descriptor is closed.

So why should "exec $fd<&-" be the only way to tell the shell it's time to close a file...
138,090
Posted By tetsujin
The same is true of file descriptors in C - but...
The same is true of file descriptors in C - but when you call open() to open a file there's no chance of accidentally closing a file you had open - the newly-opened file is assigned to a previously...
138,090
Posted By tetsujin
I'm not entirely happy with any of the available...
I'm not entirely happy with any of the available options and intend to write my own to rectify the situation. :) I feel there's a huge problem in general with Unix shells, which is the whole...
Showing results 1 to 7 of 7

 

Featured Tech Videos

All times are GMT -4. The time now is 10:11 AM.
Unix & Linux Forums Content Copyright 1993-2020. All Rights Reserved.
Privacy Policy