Mail Archives: cygwin/2001/05/01/11:41:11
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 AT yahoo DOT com>
To: <cygwin AT cygwin DOT 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
- Raw text -