Return-Path: X-Original-To: notmuch@notmuchmail.org Delivered-To: notmuch@notmuchmail.org Received: from localhost (localhost [127.0.0.1]) by olra.theworths.org (Postfix) with ESMTP id 3D1F340DEF3 for ; Fri, 19 Nov 2010 01:06:22 -0800 (PST) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org X-Spam-Flag: NO X-Spam-Score: -1.9 X-Spam-Level: X-Spam-Status: No, score=-1.9 tagged_above=-999 required=5 tests=[BAYES_00=-1.9] autolearn=ham Received: from olra.theworths.org ([127.0.0.1]) by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 4tHS0WXvPR+v for ; Fri, 19 Nov 2010 01:06:11 -0800 (PST) Received: from max.feld.cvut.cz (max.feld.cvut.cz [147.32.192.36]) by olra.theworths.org (Postfix) with ESMTP id 9CE1A40DEF1 for ; Fri, 19 Nov 2010 01:06:11 -0800 (PST) Received: from localhost (unknown [192.168.200.4]) by max.feld.cvut.cz (Postfix) with ESMTP id C31D719F3381; Fri, 19 Nov 2010 10:06:10 +0100 (CET) X-Virus-Scanned: IMAP AMAVIS Received: from max.feld.cvut.cz ([192.168.200.1]) by localhost (styx.feld.cvut.cz [192.168.200.4]) (amavisd-new, port 10044) with ESMTP id 9Pc-tuRuoBMJ; Fri, 19 Nov 2010 10:06:09 +0100 (CET) Received: from imap.feld.cvut.cz (imap.feld.cvut.cz [147.32.192.34]) by max.feld.cvut.cz (Postfix) with ESMTP id 89B6719F336D; Fri, 19 Nov 2010 10:06:09 +0100 (CET) Received: from steelpick.2x.cz (note-sojka.felk.cvut.cz [147.32.86.30]) (Authenticated sender: sojkam1) by imap.feld.cvut.cz (Postfix) with ESMTPSA id 8E073FA005; Fri, 19 Nov 2010 10:06:09 +0100 (CET) Received: from wsh by steelpick.2x.cz with local (Exim 4.72) (envelope-from ) id 1PJMv3-0002CH-Cf; Fri, 19 Nov 2010 10:06:09 +0100 From: Michal Sojka To: Austin Clements Subject: Re: Bug in remote use of notmuch In-Reply-To: References: <87wroa49w4.fsf@wsheee.2x.cz> User-Agent: Notmuch/0.5-11-g48b5e00 (http://notmuchmail.org) Emacs/23.2.1 (x86_64-pc-linux-gnu) Date: Fri, 19 Nov 2010 10:06:09 +0100 Message-ID: <871v6hof7i.fsf@steelpick.2x.cz> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: notmuch@notmuchmail.org X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: "Use and development of the notmuch mail system." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 19 Nov 2010 09:06:22 -0000 On Fri, 19 Nov 2010, Austin Clements wrote: > Unfortunately, expansion *is* performed by the remote shell, which is why > your shell quoting approach works (and is necessary). There's really no way > around this, since the ssh client simply joins all of its trailing arguments > with spaces and sends this single string to the ssh server, which exec()s > $SHELL -c . Yes, your're right. I was confused by ssh(1) which says that server executes either login shell or the command. -M