From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/50444 Path: main.gmane.org!not-for-mail From: frank@kuesterei.ch (Frank =?iso-8859-15?q?K=FCster?=) Newsgroups: gmane.emacs.gnus.general Subject: Re: Bug in pgg-gpg-process-region Date: Fri, 28 Feb 2003 10:39:01 +0100 Sender: owner-ding@hpc.uh.edu Message-ID: <87y940218q.fsf@alhambra.bioz.unibas.ch> References: <87u1esbu7t.fsf@alhambra.bioz.unibas.ch> <87ptpgigra.fsf_-_@alhambra.bioz.unibas.ch> <87smu9650w.fsf@alhambra.bioz.unibas.ch> <84fzq9761m.fsf@lucy.is.informatik.uni-duisburg.de> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-15 Content-Transfer-Encoding: quoted-printable X-Trace: main.gmane.org 1046428129 18573 80.91.224.249 (28 Feb 2003 10:28:49 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Fri, 28 Feb 2003 10:28:49 +0000 (UTC) Cc: ding@gnus.org 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 18ohl1-0004pP-00 for ; Fri, 28 Feb 2003 11:28:47 +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 18ohkc-0002lw-00; Fri, 28 Feb 2003 04:28:22 -0600 Original-Received: by sina.hpc.uh.edu (TLB v0.09a (1.20 tibbs 1996/10/09 22:03:07)); Fri, 28 Feb 2003 04:29:19 -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 EAA18847 for ; Fri, 28 Feb 2003 04:29:06 -0600 (CST) Original-Received: (qmail 40508 invoked by alias); 28 Feb 2003 10:28:02 -0000 Original-Received: (qmail 40503 invoked from network); 28 Feb 2003 10:28:02 -0000 Original-Received: from moutng.kundenserver.de (212.227.126.171) by 66.230.238.6 with SMTP; 28 Feb 2003 10:28:02 -0000 Original-Received: from [212.227.126.161] (helo=mrelayng.kundenserver.de) by moutng.kundenserver.de with esmtp (Exim 3.35 #1) id 18ohkH-0000Zl-00; Fri, 28 Feb 2003 11:28:01 +0100 Original-Received: from [131.152.17.45] (helo=alhambra.bioz.unibas.ch) by mrelayng.kundenserver.de with asmtp (Exim 3.35 #1) id 18ohkH-0005L7-00; Fri, 28 Feb 2003 11:28:01 +0100 Original-Received: from localhost ([127.0.0.1] helo=alhambra.bioz.unibas.ch) by alhambra.bioz.unibas.ch with esmtp (Exim 3.35 #1 (Debian)) id 18ogys-0000oZ-00; Fri, 28 Feb 2003 10:39:02 +0100 Original-To: kai.grossjohann@uni-duisburg.de (Kai =?iso-8859-1?q?Gro=DFjohann?=) X-Attribution: fant X-Ehrenamt: http://www.langau.de In-Reply-To: <84fzq9761m.fsf@lucy.is.informatik.uni-duisburg.de> (kai.grossjohann@uni-duisburg.de's message of "Thu, 27 Feb 2003 22:44:05 +0100") User-Agent: Gnus/5.090015 (Oort Gnus v0.15) Emacs/21.2 Precedence: list X-Majordomo: 1.94.jlt7 Xref: main.gmane.org gmane.emacs.gnus.general:50444 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:50444 kai.grossjohann@uni-duisburg.de (Kai Gro=DFjohann) schrieb: > frank@kuesterei.ch (Frank K=FCster) 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.=20=20 No it seems it's rather character encoding. > 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. I do not understand anything of this. What should I do? M-x ielm RET and then type the lines above? Why not eval-region? > (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. It's start-process-region. Bye, Frank =2D-=20 Dr. Frank K=FCster, Biozentrum der Univ. Basel Abt. Biophysikalische Chemie