From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 16298 invoked by alias); 13 Aug 2013 13:31:08 -0000 Mailing-List: contact zsh-users-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Users List List-Post: List-Help: X-Seq: 17921 Received: (qmail 9932 invoked from network); 13 Aug 2013 13:31:03 -0000 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,HTML_MESSAGE, RCVD_IN_DNSWL_LOW autolearn=ham version=3.3.2 Received-SPF: none (ns1.primenet.com.au: domain at wawrzek.name does not designate permitted sender hosts) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc:content-type; bh=livzpF9Yx5nslUeDP+yHJtAuHjNQEOfeyUKGmHnareE=; b=HVrX3zclSzVpWWFo2jdDtyiFcfZwAKRfPqkhNghmXXUIq6AYzuIXSLkipQknEtPDVr LvgkeHFdfGUd65q2smT6roq9IEQEhDltffOSH+cs+Tig9hBrWalcC0MyraXp4zFlbVIh OHrKHoam/hTL5bQGLIR26j7o+7jTWX7KTsASMqOUozFBCDc2deV+d6x6GJGNYI3YRx+W sbepwNkaSBq1sy4+pFj2mp4wjS5lb+CbSHH/pEQf0U2e4eYjMVoxxUpxpqRO9wse21xn yw0cJfX1erBIkLuOz80gxgUr57lwIOro0Yn/Mvs/cCu4VlK0dydXlxF6/iQqNpwxE5Qx 3oPQ== X-Gm-Message-State: ALoCoQmXs8BKFFlCqQJRQuR3zA75k/BiKMrK741OBjHH38oOfwZTO3PYlTtiIBMq7jtBLxRokJrD X-Received: by 10.60.131.69 with SMTP id ok5mr539413oeb.70.1376400656612; Tue, 13 Aug 2013 06:30:56 -0700 (PDT) MIME-Version: 1.0 X-Originating-IP: [2.223.199.167] In-Reply-To: <20130813133859.57c69e43@pwslap01u.europe.root.pri> References: <20130813133859.57c69e43@pwslap01u.europe.root.pri> From: Wawrzek Niewodniczanski Date: Tue, 13 Aug 2013 14:30:36 +0100 Message-ID: Subject: Re: ssh zsh and one off commnad To: Peter Stephenson Cc: Zsh Users Content-Type: multipart/alternative; boundary=089e013cbb1834d11c04e3d44026 --089e013cbb1834d11c04e3d44026 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On 13 August 2013 13:38, Peter Stephenson wrote: > On Tue, 13 Aug 2013 13:00:39 +0100 > Wawrzek Niewodniczanski wrote: > > [...] > > ssh remote "zsh -c 'for i (/usr/*(/)) {ls $i }'" > ^^ > The problem is that the $i is being substituted by the local shell, > because it's in a double-quoted expression (the single quotes inside > that are not special to the local shell). Probably putting a backslash > in front of the $ should do the trick. > > That the hit! Thanks for help, Wawrzek --=20 Dr Wawrzyniec Niewodnicza=C5=84ski or Wawrzek for short PhD in Quantum Chemistry & MSc in Molecular Engineering WWW: http://wawrzek.name E-MAIL: jobs@wawrzek.name Linux User #177124 --089e013cbb1834d11c04e3d44026--