Filename is not embedded when using redirection

Todd Zullinger tmz at pobox.com
Sat Apr 15 07:12:50 CEST 2006


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

feitao wrote:
> Hi,
> 
> My environment is Windows XP, gpg 1.4.2.2. I just found out that the
> following are different:
> 1) gpg -o a.gpg -e a.txt
> 2) gpg -e < a.txt> a.gpg
> 
> When using -o, the gpg file embeds the original filename, thus
>   gpg --use-embedded-filenmae a.gpg 
> is valid. However, 2) does not embed the filename, and
>   gpg --use-embedded-filenmae a.gpg
> prints to stdout. 
>
> My question is how I can embed the filename using Method 2 (<>)? The
> reason I hate Method 1 (-o) is that it fails for large (~5G) files
> in Windows XP.

I haven't tested this, but --set-filename looks like the option you
want to check out.

- -- 
Todd        OpenPGP -> KeyID: 0xD654075A | URL: www.pobox.com/~tmz/pgp
======================================================================
Dawn, n.:
    The time when men of reason go to bed.
        -- Ambrose Bierce, "The Devil's Dictionary"

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.3 (GNU/Linux)
Comment: When crypto is outlawed bayl bhgynjf jvyy unir cevinpl.

iG0EARECAC0FAkRAgNEmGGh0dHA6Ly93d3cucG9ib3guY29tL350bXovcGdwL3Rt
ei5hc2MACgkQuv+09NZUB1o/mgCgpV7pW9C/oyUJzwSMMCzV1veAe4QAoKhQQiEM
GHrqZy5Uor1v/v4dVH75
=tq1k
-----END PGP SIGNATURE-----



More information about the Gnupg-users mailing list