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
From: "John Morrison" <john.r.morrison@ntlworld.com>
To: <cygwin@cygwin.com>
Subject: RE: HOME
Date: Mon, 5 May 2003 17:35:04 +0100
Message-ID: <NCEBJJFMCAOKNNABBFIMCEJMDKAA.john.r.morrison@ntlworld.com>
MIME-Version: 1.0
Content-Type: text/plain;
	charset="us-ascii"
Content-Transfer-Encoding: 7bit
X-Priority: 3 (Normal)
X-MSMail-Priority: Normal
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
In-Reply-To: <Pine.GSO.4.44.0305051153440.25128-100000@slinky.cs.nyu.edu>
Importance: Normal

> From: Igor Pechtchanski [mailto:pechtcha@cs.nyu.edu]
> John,
>
> Some notes below.

Ta :)

> On Mon, 5 May 2003, John Morrison wrote:

> > MANPATH="/usr/man:/usr/local/man:/usr/autotool/devel/man:$MANPATH"
>            ^^^^^^^^^^^^^^^^^^^^^^^^
> This should be "/usr/local/man:/usr/man:".  This bug was in my
> /etc/profile as well; I just fixed it.

Fixed

> > export MANPATH
> > case "$0" in
> > bash     | -bash     | */bash | \
> > bash.exe | -bash.exe | */bash.exe )
> >   # Set a HOSTNAME variable
> >   HOSTNAME=`hostname`
> >   export HOSTNAME
>     ^^^^^^^^^^^^^^^^^^^
> The two lines above should be outside of the "bash" case, as they are also
> used in the "ksh" case.

ksh uses typeset (I don't use ksh, what's typeset?) I assumed
it was the equiv.

> >
> >   # Set a default prompt of: user@host and current_directory
> >   PS1='\[\033]0;\w\007
> >   \033[32m\]\u@\h \[\033[33m\w\033[0m\]
> >   $ '
> >   ;;
> > ksh*     | -ksh*     | */ksh* | \
> > ksh*.exe | -ksh*.exe | */ksh*.exe )
> >   # Set a HOSTNAME variable
> >   typeset -l HOSTNAME

What's this do?

> >   # Set a default prompt of: user@host and current_directory
> >   PS1='^[]0;${PWD}^G
> >   ^[[32m${USER}@${HOSTNAME} ^[[33m${PWD}^[[0m
> >   $ '
> >   ;;
> > sh     | -sh     | */sh \
> > sh.exe | -sh.exe | */sh.exe )
> >   # Set a simple prompt
> >   PS1='$ '
> >   ;;
> > * )
> >   echo "Sorry, this shell has no default setup."
> >   echo "Please contact cygwin@cygwin.com with the shell details"
> >   echo "and what you would like set as reasonable defaults."
>           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
> I'm thinking, should /etc/csh.login and /etc/csh.cshrc live in this
> package too?  Also, does "zsh" use /etc/profile, or something else?

I don't know, I only use bash, open for discussion :)

J.


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

