On Thu, Sep 26, 2013 at 8:07 PM, Bob Proulx <b...@proulx.com> wrote:
> Just a reminder that ssh reads from stdin unless explicitly told to
> avoid reading from stdin.  If stdin isn't going to be used then the -n
> option should be used.
> [...]
> Regardless of the resolution of the above question about bash the
> usage of ssh in the above should use 'ssh -n'.

I'm not sure how that is helpful. 'ssh -n' closes stdin prematurely,
which means that any error from the first command ("cd /tmp") will not
be propagated to the originating host, e.g. when the directory doesn't
exist.

Reply via email to