From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 16426 invoked by alias); 1 Jun 2010 22:37:53 -0000 Mailing-List: contact zsh-workers-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Workers List List-Post: List-Help: X-Seq: 27988 Received: (qmail 4649 invoked from network); 1 Jun 2010 22:37:52 -0000 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-4.3 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,RCVD_IN_DNSWL_MED,SPF_HELO_PASS autolearn=ham version=3.3.1 Received-SPF: pass (ns1.primenet.com.au: SPF record at _netblocks.google.com designates 216.239.44.51 as permitted sender) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=google.com; s=beta; t=1275431239; bh=QvkCiyGroJqsFr4hInurgEuyJz8=; h=MIME-Version:In-Reply-To:References:Date:Message-ID:Subject:From: To:Cc:Content-Type:Content-Transfer-Encoding; b=lnB1jiy7sKmcUn4+f9KYYpKB43+sxoS1upLfUDmZ8h2cgYQiChrA5X7N3VahMAN64 PdGGZ3YS9Usn5KGx7/f1g== DomainKey-Signature: a=rsa-sha1; s=beta; d=google.com; c=nofws; q=dns; h=mime-version:in-reply-to:references:date:message-id:subject:from:to: cc:content-type:content-transfer-encoding:x-system-of-record; b=tRf27hCSyz0PrnT8mkYwJJL4jXeH3WliEgFRvizBQFV4WDZraOsoziEi9jQz5xJUx kPK5+q5wPHHTfK01CLvdw== MIME-Version: 1.0 In-Reply-To: <201006012145.o51LjhGg005724@pws-pc.ntlworld.com> References: <201006012145.o51LjhGg005724@pws-pc.ntlworld.com> Date: Tue, 1 Jun 2010 15:27:14 -0700 Message-ID: Subject: Re: zsh ignores the arguments on its first command. From: Martin Buchholz To: Peter Stephenson Cc: zsh-workers@zsh.org, Joel Ebel Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-System-Of-Record: true Thanks, Peter. You are right that this one is not a bug in zsh (or at least not just zsh). Sigh... I guess I fell into a shell-quoting trap, even though I consider myself an expert on that... Here's one right way to do it: $ ssh localhost "zsh -fc 'echo 1 2 3; echo 4 5 6'" 1 2 3 4 5 6 The openssh documentation doesn't seem to specify exactly how a remote command is executed. Martin On Tue, Jun 1, 2010 at 14:45, Peter Stephenson wrote: > Martin Buchholz wrote: >> Hi zsh maintainers, >> >> This is a bug report. >> >> It seems that when the shell is invoked using >> zsh -i -c 'COMMAND1; COMMAND2' >> then COMMAND1 is executed without its arguments! > > I think your terminal is being screwed up somehow. =A0That explains both > why you can't see the echo output and can't see the ${+terminfo}. > > It usually helps if you can boil bugs down to what happens with the "-f" > option, so we're not relying on unseen side effects of initialisation > scripts. > > Also, I'm afraid we don't have the spare time to go poking around in > distribution's zshrc files, but if you think there's some effect we > (rather than the distribution) should know about, please do report it. > > -- > Peter Stephenson > Web page now at http://homepage.ntlworld.com/p.w.stephenson/ >