From: Martin Buchholz <martinrb@google.com>
To: Peter Stephenson <p.w.stephenson@ntlworld.com>
Cc: zsh-workers@zsh.org, Joel Ebel <jbebel@google.com>
Subject: Re: zsh ignores the arguments on its first command.
Date: Tue, 1 Jun 2010 15:27:14 -0700 [thread overview]
Message-ID: <AANLkTikj6XyHH3R3BX56BnGdqYps8xvqOjfL_8u822-i@mail.gmail.com> (raw)
In-Reply-To: <201006012145.o51LjhGg005724@pws-pc.ntlworld.com>
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
<p.w.stephenson@ntlworld.com> 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. That 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 <p.w.stephenson@ntlworld.com>
> Web page now at http://homepage.ntlworld.com/p.w.stephenson/
>
next prev parent reply other threads:[~2010-06-01 22:37 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-06-01 21:23 Martin Buchholz
2010-06-01 21:45 ` Peter Stephenson
2010-06-01 22:27 ` Martin Buchholz [this message]
2010-06-02 7:05 ` Martin Buchholz
2010-06-02 11:19 ` Peter Stephenson
2010-06-02 16:44 ` Martin Buchholz
2010-06-03 9:01 ` Peter Stephenson
2010-06-03 13:22 ` Martin Buchholz
2010-06-03 13:32 ` Peter Stephenson
2010-06-03 13:47 ` Martin Buchholz
2010-06-03 14:15 ` Bart Schaefer
2010-06-03 14:20 ` Peter Stephenson
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=AANLkTikj6XyHH3R3BX56BnGdqYps8xvqOjfL_8u822-i@mail.gmail.com \
--to=martinrb@google.com \
--cc=jbebel@google.com \
--cc=p.w.stephenson@ntlworld.com \
--cc=zsh-workers@zsh.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).