"read" builtin: timeout vs. EOF

2011-12-18 Thread Stephen Gildea
The "read" built-in documentation says, Exit Status: The return code is zero, unless end-of-file is encountered, read times out, or an invalid file descriptor is supplied as the argument to -u. I would like to be able to distinguish the no-data conditions. In particular I want to kno

Re: "read" builtin: timeout vs. EOF

2011-12-19 Thread Stephen Gildea
> The documentation already says "the exit status is greater than > 128 if the timeout is exceeded" in a couple of places. Oh, look at that, a mere four lines above the text I quoted. I guess I can downgrade this to a documentation request. > Does it really need to be

compgen -I (programmable completion as if initial word)

2024-09-24 Thread Stephen Gildea
I would like these two partially entered commands to complete the same way: $ ca $ sudo ca The first completion nicely takes into account any previous "complete -I" setting (because it is completing the initial word of a command). But the second completion relies on a programmable completion, an