do_plaintext() error message
Steve Butler
sbutler@fchn.com
Thu Apr 24 17:38:02 2003
It does appear that time is a built-in and is not affected by any IO
redirection on the command line.
Testing on my box did not elicit the error. I did
time tar -cf - [directory] | gpg --no-batch --always-trust --recipient
[myself] --output web.pgp --encrypt
File `web.pgp' exists. Overwrite (y/N)? y
2.99s real 0.94s user 0.02s system
Note: --always-trust is needed solely due to the way we handle keys.
-----Original Message-----
From: Kyle Hasselbacher [mailto:kyle-list-gpguser@toehold.com]
Sent: Wednesday, April 23, 2003 3:02 PM
To: Steve Butler
Cc: gnupg-users@gnupg.org
Subject: Re: do_plaintext() error message
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On Wed, Apr 23, 2003 at 01:42:09PM -0700, Steve Butler wrote:
>Perhaps I'm all wet, but wouldn't the output from both tar and time be sent
>via the pipe to gpg? Somehow I think there will be problems since tar is
>being told to send output via STDOUT and time writes by default to STDOUT.
>
>Try it without time.
Hmmm. Not on my system.
kyle@longshot ~ $ time echo hello
hello
real 0m0.000s
user 0m0.000s
sys 0m0.000s
kyle@longshot ~ $ time echo hello > /dev/null
real 0m0.000s
user 0m0.000s
sys 0m0.000s
kyle@longshot ~ $ uname -a
Linux longshot 2.4.20 #1 Thu Nov 28 20:28:40 CST 2002 i686 unknown
kyle@longshot ~ $
I'm not sure how time writes its output, but it's not stdout. It's a shell
built-in, so maybe it writes straight to the terminal.
- --
Kyle Hasselbacher
kyle@toehold.com
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (GNU/Linux)
iD8DBQE+pw1z10sofiqUxIQRArmmAJ4lmwL4ephN+dMZcvEry/zvBR6W/QCeMhSZ
Luslr8eHaZRKSQc/bSf3SLE=
=UF9P
-----END PGP SIGNATURE-----
_______________________________________________
Gnupg-users mailing list
Gnupg-users@gnupg.org
http://lists.gnupg.org/mailman/listinfo/gnupg-users
CONFIDENTIALITY NOTICE: This e-mail message, including any attachments, is for the sole use of the intended recipient(s) and may contain confidential and privileged information. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please contact the sender by reply e-mail and destroy all copies of the original message.