Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
Subject: Re: 2004-Feb-17 snapshot change ssh option parsing behavior
From: Robert Collins <rbcollins@cygwin.com>
To: cygwin@cygwin.com
In-Reply-To: <40328A2E.80900@acm.org>
References: <16434.32879.365152.633519@forbin.entomo.com> <20040217212425.GB18953@cygbert.vinschen.de>  <40328A2E.80900@acm.org>
Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="=-m/mACR906Sg409HgGsTx"
Message-Id: <1077054294.1254.4.camel@localhost>
Mime-Version: 1.0
Date: Wed, 18 Feb 2004 08:44:55 +1100
X-IsSubscribed: yes

--=-m/mACR906Sg409HgGsTx
Content-Type: text/plain
Content-Transfer-Encoding: quoted-printable

On Wed, 2004-02-18 at 08:39, David Rothenberger wrote:
> Corinna Vinschen wrote:
> > On Feb 17 12:58, David Rothenberger wrote:
> > We're using the latest plain BSD getopt() now.  It's permuting the
> > options by default.  This was switched off by default in Cygwin so far.
> >=20
> > Typically you should quote the command you send to the remote host:
> >=20
> >   ssh somehost '/bin/bash --login -c date'
>=20
> Yeah, that's an easy fix for this simple case, but I have a bunch of othe=
r=20
> scripts that have quotes in the command sent to ssh, which makes adding=
=20
> another level of quotes "fun."
>=20
> > Another way to accomplish what you want is to set the environment
> > variable POSIXLY_CORRECT prior to calling ssh.
>=20
> That's helpful.  Thanks.
>=20
> This change broke a number of my scripts.  I wonder how many other simila=
r=20
> error reports will be made by other users when 1.5.8 is released?

you may find that=20
ssh somehost -- bin/bash --login -c date
also works.

Rob
--=20
GPG key available at: <http://www.robertcollins.net/keys.txt>.

--=-m/mACR906Sg409HgGsTx
Content-Type: application/pgp-signature; name=signature.asc
Content-Description: This is a digitally signed message part

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)

iD8DBQBAMotWI5+kQ8LJcoIRApwqAJ9siTOA7o5oEqzf8NO+XJ90gAi7xwCfaJxt
+3Et1fGy2dzhk2J3ljTDem0=
=qZd4
-----END PGP SIGNATURE-----

--=-m/mACR906Sg409HgGsTx--

