Wrapped main
Jonathan Hayward
jshayward@pobox.com
Fri Jul 13 18:51:01 2001
--------------78EFAC0AB7EDD5091E836F62
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
I'm working on a Tcl extention that will wrap gpg, and I'm having
difficulty getting e.g. gpg --help to work. If I add my own code to the
(renamed) main to print out options, and use Tcl to call gpg --help, it
prints out --help, but the behavior of gpg is the same as if I hadn't
specified any options.
When I tried, on the command line, cat | gpg --help | cat (to see if gpg
behaved differently depending on whether I/O was tty-based), it was
almost the same as gpg --help (almost = waited for me to hit enter
before continuing). I'm essentially calling the main from within
another program--are you aware of anything that would behave differently
in that context, or toes that I could be stepping on?
--
Jonathan Hayward
jshayward@pobox.com
http://JonathansCorner.com
--------------78EFAC0AB7EDD5091E836F62
Content-Type: text/html; charset=us-ascii
Content-Transfer-Encoding: 7bit
<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
<html>
<body text="#000000" bgcolor="#FFFFFF" link="#0000FF" vlink="#FF0000" alink="#000088">
I'm working on a Tcl extention that will wrap gpg, and I'm having difficulty
getting e.g. gpg --help to work. If I add my own code to the
(renamed) main to print out options, and use Tcl to call gpg --help, it
prints out --help, but the behavior of gpg is the same as if I hadn't
specified any options.
<p>When I tried, on the command line, cat | gpg --help | cat (to see if
gpg behaved differently depending on whether I/O was tty-based), it was
almost the same as gpg --help (almost = waited for me to hit enter before
continuing). I'm essentially calling the main from within another
program--are you aware of anything that would behave differently in that
context, or toes that I could be stepping on?
<pre>--
Jonathan Hayward
jshayward@pobox.com
<A HREF="http://JonathansCorner.com">http://JonathansCorner.com</A></pre>
</body>
</html>
--------------78EFAC0AB7EDD5091E836F62--