From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/50432 Path: main.gmane.org!not-for-mail From: kai.grossjohann@uni-duisburg.de (Kai =?iso-8859-1?q?Gro=DFjohann?=) Newsgroups: gmane.emacs.gnus.general Subject: Re: Bug in pgg-gpg-process-region Date: Thu, 27 Feb 2003 22:44:05 +0100 Organization: University of Duisburg, Germany Sender: owner-ding@hpc.uh.edu Message-ID: <84fzq9761m.fsf@lucy.is.informatik.uni-duisburg.de> References: <87u1esbu7t.fsf@alhambra.bioz.unibas.ch> <87ptpgigra.fsf_-_@alhambra.bioz.unibas.ch> <87smu9650w.fsf@alhambra.bioz.unibas.ch> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Trace: main.gmane.org 1046382328 31201 80.91.224.249 (27 Feb 2003 21:45:28 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Thu, 27 Feb 2003 21:45:28 +0000 (UTC) Return-path: Original-Received: from malifon.math.uh.edu ([129.7.128.13]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 18oVqG-000875-00 for ; Thu, 27 Feb 2003 22:45:25 +0100 Original-Received: from sina.hpc.uh.edu ([129.7.128.10] ident=lists) by malifon.math.uh.edu with esmtp (Exim 3.20 #1) id 18oVpK-0007eK-00; Thu, 27 Feb 2003 15:44:26 -0600 Original-Received: by sina.hpc.uh.edu (TLB v0.09a (1.20 tibbs 1996/10/09 22:03:07)); Thu, 27 Feb 2003 15:45:26 -0600 (CST) Original-Received: from sclp3.sclp.com (sclp3.sclp.com [66.230.238.2]) by sina.hpc.uh.edu (8.9.3/8.9.3) with SMTP id PAA17035 for ; Thu, 27 Feb 2003 15:45:12 -0600 (CST) Original-Received: (qmail 10863 invoked by alias); 27 Feb 2003 21:44:07 -0000 Original-Received: (qmail 10858 invoked from network); 27 Feb 2003 21:44:06 -0000 Original-Received: from quimby.gnus.org (80.91.224.244) by 66.230.238.6 with SMTP; 27 Feb 2003 21:44:06 -0000 Original-Received: from news by quimby.gnus.org with local (Exim 3.12 #1 (Debian)) id 18oW5n-0002No-00 for ; Thu, 27 Feb 2003 23:01:27 +0100 Original-To: ding@gnus.org Original-Path: not-for-mail Original-Newsgroups: gnus.ding Original-Lines: 23 Original-NNTP-Posting-Host: p50876cc9.dip.t-dialin.net Original-X-Trace: quimby.gnus.org 1046383286 8427 80.135.108.201 (27 Feb 2003 22:01:26 GMT) Original-X-Complaints-To: usenet@quimby.gnus.org Original-NNTP-Posting-Date: 27 Feb 2003 22:01:26 GMT User-Agent: Gnus/5.090016 (Oort Gnus v0.16) Emacs/21.3.50 (i686-pc-linux-gnu) Cancel-Lock: sha1:bWCwZCI7xlqnYxKZbpol3gIYBXk= Precedence: list X-Majordomo: 1.94.jlt7 Xref: main.gmane.org gmane.emacs.gnus.general:50432 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:50432 frank@kuesterei.ch (Frank Küster) writes: > And exactly this call fails as soon as there is a $ sign in the > passphrase. I do not know in fact wether that has anything to do with > shell expansion. However, I just created a throw-away-key with the > passphrase "Hallo", and I could sign without an error; with my real one, > I still cannot. I presume shell quoting issues. You can start a process from within Emacs with start-process. I suggest that you use M-x ielm RET to execute Lisp statements. Then you can do the start-process. Store the result in a variable. Then you can use that process to send it some data using process-send-string. (setq x (start-process "gpg-test" (get-buffer-create "*gpg-test*") "gpg" "arg1" "arg2" ...)) (process-send-string x "pass$phrase\n") Something like this. Maybe you can snarf the start-process thingy from the Gnus Lisp code. -- A preposition is not a good thing to end a sentence with.