gnu.bash.bug
[Top] [All Lists]

Re: automate input

Subject: Re: automate input
From: Eric Blake
Date: Thu, 09 Aug 2007 06:18:32 -0600
Newsgroups: gnu.bash.bug

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

According to ruby0954 on 8/8/2007 4:12 PM:
> trac-admin is an interactive script. most its default answers are fine. I
> would like to have my script to hit the enter key for me. $'\r' is not
> working as the enter key.  thanks. 

That's because the enter key is not $'\r', but $'\n' (or more simply, a
blank line inside your heredoc).

- --
Don't work too hard, make some time for fun as well!

Eric Blake             ebb9@xxxxxxx
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (Cygwin)
Comment: Public key at home.comcast.net/~ericblake/eblake.gpg
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFGuwYY84KuGfSFAYARAmSeAKCKtW7U+416S1ncqLLsGSTo2MEV8wCgvpZx
p/ldW43USeb+Vr2WzVA81/0=
=DxPZ
-----END PGP SIGNATURE-----



<Prev in Thread] Current Thread [Next in Thread>