PDA

View Full Version : [ubuntu] Help with GPG error message


Bobrm2
July 6th, 2008, 06:27 PM
I am attempting to create a revoke key, and received the error message posted below. Could someone explain it to me. Thank you

bob@bob-desktop:~$ gpg --output revoke.asc --gen-revoke <KEY-ID>
bash: syntax error near unexpected token `newline'



gpg --output revoke.asc --gen-revoke <KEY-ID>''

Bob

unutbu
July 6th, 2008, 09:26 PM
actor@studio:~% <>
bash: syntax error near unexpected token `newline'
actor@studio:~% <
bash: syntax error near unexpected token `newline'
actor@studio:~% >
bash: syntax error near unexpected token `newline'


I'm guessing your <KEY-ID> literally includes a < or a >.
I'm not familiar with the --gen-revoke option, the man page says you are supposed to feed it a name, but it doesn't say what a name is. If a name is the same thing as a KEY-ID, then you are feeding it the right thing. Leave off the < and > around the name (KEY-ID?) if you are including them.

If the name (KEY-ID?) really does include a < or > symbol, then you can protect them from bash interpretation by putting a backslash in front of them: \< or \>.

Bobrm2
July 6th, 2008, 10:44 PM
Thank you very much, It is hard enough for me to see the very difficult, let alone the really simple. Leaving the brackets < > out did the trick.

Bob:)