Mailing-List: contact cygwin-help@sourceware.cygnus.com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe@sources.redhat.com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin@sources.redhat.com>
List-Help: <mailto:cygwin-help@sources.redhat.com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner@sources.redhat.com
Delivered-To: mailing list cygwin@sources.redhat.com
X-Sent: 1 May 2001 15:40:42 GMT
Message-ID: <008e01c0d255$120feaa0$1300a8c0@internal.sti>
From: "\(STi\) Michael C. Schatz" <mschatz@stisystems.net>
To: "Cygwin Users" <cygwin@cygwin.com>
References: <002e01c0d24a$83735340$1300a8c0@internal.sti> <3AEECD6A.54C41C64@yahoo.com> <004801c0d24e$7f56f060$1300a8c0@internal.sti> <20010501105601.A6665@redhat.com> <3AEECF3B.2CC71F78@ece.gatech.edu> <20010501110456.A6812@redhat.com> <3AEED808.F7DCB6A8@yahoo.com>
Subject: Re: Cygwin for Windows Me
Date: Tue, 1 May 2001 11:40:37 -0400
MIME-Version: 1.0
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: 7bit
X-Priority: 3
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook Express 5.50.4133.2400
X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400

I certainly never meant to start a scripting war, I was thinking more along
the lines of an undocumented switch to mkpasswd....

(Im still waiting for the perl one liners)


----- Original Message -----
From: "Earnie Boyd" <earnie_boyd@yahoo.com>
To: <cygwin@cygwin.com>
Sent: Tuesday, May 01, 2001 11:36 AM
Subject: Re: Cygwin for Windows Me


> Christopher Faylor wrote:
> >
> > On Tue, May 01, 2001 at 10:59:07AM -0400, Charles S. Wilson wrote:
> > >Christopher Faylor wrote:
> > >>
> > >> On Tue, May 01, 2001 at 10:53:34AM -0400, (STi) Michael C. Schatz
wrote:
> > >> >In that case is there a way for mkpasswd to maintain shell choice?
> > >>
> > >> mkpasswd
> > >> vi /etc/passwd
> > >> :%s%/bin/sh%/bin/bash%
> > >> ZZ
> > >
> > >---mymkpasswd----
> > >#!/bin/sh
> > >mkpasswd
> > >cat /etc/passwd | sed -e 's#/bin/sh#/bin/bash#' > /tmp/passwd
> > >mv /tmp/passwd /etc/passwd
> > >-----------------
> >
> > Aha!  Script wars!
> >
> > I'll stop here.  You win.
> >
>
> Hmm...  Since it's a war ;), how about
>
>   cat << EOD > /etc/passwd.ex
>   %s%/bin/sh%/bin/bash%
>   exit
>   EOD
>   vi -s /etc/passwd.ex -es /etc/passwd
>   rm /etc/passwd.ex
>
> Earnie.
>
> _________________________________________________________
> Do You Yahoo!?
> Get your free @yahoo.com address at http://mail.yahoo.com
>
>
> --
> Want to unsubscribe from this list?
> Check out: http://cygwin.com/ml/#unsubscribe-simple
>
>


--
Want to unsubscribe from this list?
Check out: http://cygwin.com/ml/#unsubscribe-simple

