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
Delivered-To: mailing list cygwin@cygwin.com
Message-Id: <3.0.5.32.20020306165645.00984c90@pop.shore.net>
X-Sender: bag@pop.shore.net
X-Mailer: QUALCOMM Windows Eudora Pro Version 3.0.5 (32)
Date: Wed, 06 Mar 2002 16:56:45 -0500
To: Peter Buckley <peter.buckley@cportcorp.com>
From: Barry Goldstein <bag@shore.net>
Subject: Re: Prompt question
Cc: cygwin@cygwin.com
In-Reply-To: <3C868DD7.7030005@cportcorp.com>
References: <3.0.5.32.20020306154226.0097c7b0@pop.shore.net>
 <3.0.5.32.20020306160958.00970800@pop.shore.net>
 <3.0.5.32.20020306163817.00972650@pop.shore.net>
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"

At 04:44 PM 3/6/2002 -0500, Peter Buckley wrote:
>Aha. Sounds like it might be a problem with the space in the name. I am 
>not sure how to work around that with mkpasswd. But you could probably 
>do a "mkpasswd -l >> /etc/passwd" (I didn't realize you weren't in a 
>domain environment).
>
>You can also try Corinna's suggestion about "mkpasswd -u "Barry 
>Goldstein" >> /etc/passwd", or maybe "mkpasswd -u Barry\ Goldstein >> 
>/etc/passwd". Note that the space needs to be quoted.
>
>About the colors, are you checking off "modify the shortcut which 
>started this window"? It sounds like you are only modifying the one 
>window, and so the next command window has the same bad colors.
>
>HTH,
>Peter

Aha!

I did the mkpasswd -l and got all this in the passwd file:
Everyone:*:0:0:,S-1-1-0::
SYSTEM:*:18:18:,S-1-5-18::
Administrators:*:544:54
4:,S-1-5-32-544::
Administrator:unused_by_nt/2000/xp:500:513:Barry
Goldstein,U-INUK\Administrator,S-1-5-21-1269515077-1808626588-709306599-500:
/home/Administrator:/bin/bash
Barry
Goldstein:unused_by_nt/2000/xp:1000:513:Barry Goldstein,U-INUK\Barry
Goldstein,S-1-5-21-1269515077-1808626588-709306599-1000:/home/Barry
Goldstein:/bin/bash
Guest:unused_by_nt/2000/xp:501:513:U-INUK\Guest,S-1-5-21
-1269515077-1808626588-709306599-501:/home/Guest:/bin/bash

I was at first disappointed to see that I still had no name, but of course
I had to kill and restart cygwin and now, lo and behold, I am once again
Barry Goldstein.

Imagine my relief!

As for the colors, yes, I told it to modify the shortcut that started the
window. I think there's something in the prompt strings that undoes that
and sets the colors with some sort of odd ANSI strings. The prompt strings are
PS1=$'\\[\\033]0;\\w\\007\n\\033[32m\\]\\u@\\h \\[\\033[33m\\w\\033[0m\\]\n$ '
PS2='> '
PS4='+ '

I'm not sure where these should be set, but I'll go read the bash man
pages. Suggestions are welcome (I'll settle for bright-green-on-black).

Thanks very much for the help.

BG

==
Barry Goldstein              Pequod Software
124 Otis Street              bag@shore.net
Newtonville, MA 02460-1846   +1-617-332-5758 (home)
U.S.A.                       +1-509-756-7445 (fax)

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

