using --passphrase-fd 0 option with passphrase containing <>

Thomas Hoffman THoffman@verticalscreen.com
Thu Jul 10 23:07:01 2003


This message is in MIME format. Since your mail reader does not understand
this format, some or all of this message may not be legible.

------_=_NextPart_001_01C34727.04D68490
Content-Type: text/plain;
	charset="ISO-8859-1"

Has anyone come across a situation where in a command such as:
 
prompt> echo 123abc<1>|gpg.exe --passphrase-fd 0 --decrypt file.gpg
 
Where the < and > in the passphrase cause the command to fail?
 
When using that command run in a .bat file, I get a "The system cannot find
the file specified." error.
 
When using that command straight on the command line, I get a "| was
unexpected at this time."
 
Yet, the exact same command, when used with a passphrase that does not
contain a greater than/less than sign, works fine.
 
Making the command read the exact same passphrase from a file instead of
stdin, also works fine.
 
Is there a workaround to this?
 
Thanks
 
 
Tom Hoffman

------_=_NextPart_001_01C34727.04D68490
Content-Type: text/html;
	charset="ISO-8859-1"

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=ISO-8859-1">


<META content="MSHTML 6.00.2800.1141" name=GENERATOR></HEAD>
<BODY>
<DIV><SPAN class=536230021-10072003><FONT face=Arial size=2>Has anyone come 
across a situation where in a command such as:</FONT></SPAN></DIV>
<DIV><SPAN class=536230021-10072003><FONT face=Arial 
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=536230021-10072003><FONT face=Arial size=2>prompt&gt; echo 
123abc&lt;1&gt;|gpg.exe --passphrase-fd 0 --decrypt file.gpg</FONT></SPAN></DIV>
<DIV><SPAN class=536230021-10072003><FONT face=Arial 
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=536230021-10072003><FONT face=Arial size=2>Where the &lt; and 
&gt; in the passphrase cause the command to fail?</FONT></SPAN></DIV>
<DIV><SPAN class=536230021-10072003><FONT face=Arial 
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=536230021-10072003><FONT face=Arial size=2>When using that 
command run in a .bat file, I get a "The system cannot find the file specified." 
error.</FONT></SPAN></DIV>
<DIV><SPAN class=536230021-10072003><FONT face=Arial 
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=536230021-10072003><FONT face=Arial size=2>When using that 
command straight on the command line, I get a "| was unexpected at this 
time."</FONT></SPAN></DIV>
<DIV><SPAN class=536230021-10072003><FONT face=Arial 
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=536230021-10072003><FONT face=Arial size=2>Yet, the exact same 
command, when used with a passphrase that does not contain a greater than/less 
than sign, works fine.</FONT></SPAN></DIV>
<DIV><SPAN class=536230021-10072003><FONT face=Arial 
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=536230021-10072003><FONT face=Arial size=2>Making the command 
read the exact same passphrase from a file instead of stdin, also works 
fine.</FONT></SPAN></DIV>
<DIV><SPAN class=536230021-10072003><FONT face=Arial 
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=536230021-10072003><FONT face=Arial size=2>Is there a 
workaround to this?</FONT></SPAN></DIV>
<DIV><SPAN class=536230021-10072003><FONT face=Arial 
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=536230021-10072003><FONT face=Arial 
size=2>Thanks</FONT></SPAN></DIV>
<DIV><SPAN class=536230021-10072003><FONT face=Arial 
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=536230021-10072003><FONT face=Arial 
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=536230021-10072003><FONT face=Arial size=2>Tom 
Hoffman</FONT></SPAN></DIV></BODY></HTML>

------_=_NextPart_001_01C34727.04D68490--