bug-gettext
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug-gettext] gettextize requires confirmation from /dev/tty to complete


From: Stefano Lattarini
Subject: [bug-gettext] gettextize requires confirmation from /dev/tty to complete
Date: Tue, 13 Dec 2011 20:26:12 +0100
User-agent: KMail/1.13.7 (Linux/2.6.30-2-686; KDE/4.6.5; i686; ; )

Yes, the gettextize script from the gettext git repository forces the
caller to press enter *at the console* to complete its execution.  And
there's no way to avoid or work around this this (other than hacking
the gettextize script itself).

I find this to be a very unfriendly an un-unixy behaviour, for which the
only "reason" I can see is the one given in the comments:

  echo "Press Return to acknowledge the previous $count."
  # Read from /dev/tty, not stdin, so that gettextize cannot be abused
  # by non-interactive tools.
  read dummy < /dev/tty

which seems an absurd reason to me -- how do you know whether a script
is "abusing" gettextize rather than simply using it in a non-common way
for a non-commmon but legitimate purpose?

So, could you please just remove this behaviour from gettextize?
(Note: I haven't sent you a path because the change seems obvious
enough not to require one; but I'll happily prepare a patch if you
prefer).

Regards,
  Stefano



reply via email to

[Prev in Thread] Current Thread [Next in Thread]