From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/50447 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: Fri, 28 Feb 2003 14:04:56 +0100 Organization: University of Duisburg, Germany Sender: owner-ding@hpc.uh.edu Message-ID: <84el5sy2rr.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> <84fzq9761m.fsf@lucy.is.informatik.uni-duisburg.de> <87y940218q.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 1046437525 17511 80.91.224.249 (28 Feb 2003 13:05:25 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Fri, 28 Feb 2003 13:05:25 +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 18okCZ-0004YH-00 for ; Fri, 28 Feb 2003 14:05:23 +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 18okCT-0003kj-00; Fri, 28 Feb 2003 07:05:17 -0600 Original-Received: by sina.hpc.uh.edu (TLB v0.09a (1.20 tibbs 1996/10/09 22:03:07)); Fri, 28 Feb 2003 07:06:15 -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 HAA19228 for ; Fri, 28 Feb 2003 07:06:02 -0600 (CST) Original-Received: (qmail 44672 invoked by alias); 28 Feb 2003 13:04:59 -0000 Original-Received: (qmail 44666 invoked from network); 28 Feb 2003 13:04:58 -0000 Original-Received: from quimby.gnus.org (80.91.224.244) by 66.230.238.6 with SMTP; 28 Feb 2003 13:04:58 -0000 Original-Received: from news by quimby.gnus.org with local (Exim 3.12 #1 (Debian)) id 18okTF-0002ra-00 for ; Fri, 28 Feb 2003 14:22:37 +0100 Original-To: ding@gnus.org Original-Path: not-for-mail Original-Newsgroups: gnus.ding Original-Lines: 49 Original-NNTP-Posting-Host: p50877d52.dip.t-dialin.net Original-X-Trace: quimby.gnus.org 1046438557 10305 80.135.125.82 (28 Feb 2003 13:22:37 GMT) Original-X-Complaints-To: usenet@quimby.gnus.org Original-NNTP-Posting-Date: 28 Feb 2003 13:22:37 GMT User-Agent: Gnus/5.090016 (Oort Gnus v0.16) Emacs/21.3.50 (i686-pc-linux-gnu) Cancel-Lock: sha1:KS+GvpVHXelTCsI3O5R5OAmEZyE= Precedence: list X-Majordomo: 1.94.jlt7 Xref: main.gmane.org gmane.emacs.gnus.general:50447 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:50447 frank@kuesterei.ch (Frank Küster) writes: > kai.grossjohann@uni-duisburg.de (Kai Großjohann) schrieb: > >> 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. > > No it seems it's rather character encoding. Yeah, I saw another message. But try the following two commands in a shell some day and then you will see why I thought it might be a shell quoting issue: echo "foo$HOME" echo 'foo$HOME' >> 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? It's a matter of taste, mostly. I like the way that ielm presents me the input and output. In principle, eval-region or M-: should also work. >> (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. OK. -- A preposition is not a good thing to end a sentence with.