[Rt-devel] [patch]: make command-line tool safe to be invoked with IO redirection

Otmar Lendl ol at bofh.priv.at
Mon Aug 25 10:57:42 EDT 2008


On 2008/08/25 14:08, Jesse Vincent <jesse at bestpractical.com> wrote:
> 
> Depending on /dev/tty feels like it's going to break on some common  
> platform or other.  Anyone have any useful guidance?
> 

The only other option I see is to add a command-line option to give a
filename into which the response from the server gets written. 
That doesn't win an prize for elegance, though.

Another question for the command-line tool: 

If the server returns an error, the user is dumped into the editor.
What is the user supposed to do if he wants to abort the operation?
Clear the file? ^C doesn't work as that affects the editor and not
the script.

/ol
-- 
-=-  Otmar Lendl  --  ol at bofh.priv.at  -=-


More information about the Rt-devel mailing list