From andrsn@andrsn.stanford.edu  Wed Jun 28 22:54:03 2000
Return-Path: <andrsn@andrsn.stanford.edu>
Received: from andrsn.stanford.edu (andrsn.Stanford.EDU [171.66.112.163])
	by hub.freebsd.org (Postfix) with ESMTP id 2FBE137B5FA
	for <FreeBSD-gnats-submit@freebsd.org>; Wed, 28 Jun 2000 22:53:59 -0700 (PDT)
	(envelope-from andrsn@andrsn.stanford.edu)
Received: (from andrsn@localhost)
	by andrsn.stanford.edu (8.9.3/8.9.1) id WAA39396;
	Wed, 28 Jun 2000 22:53:38 -0700 (PDT)
Message-Id: <200006290553.WAA39396@andrsn.stanford.edu>
Date: Wed, 28 Jun 2000 22:53:38 -0700 (PDT)
From: Annelise Anderson <andrsn@andrsn.stanford.edu>
Reply-To: andrsn@andrsn.stanford.edu
To: FreeBSD-gnats-submit@freebsd.org
Subject: Dot Files for Optional Shells
X-Send-Pr-Version: 3.2

>Number:         19573
>Category:       conf
>Synopsis:       Dot Files for Optional Shells
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Wed Jun 28 23:00:01 PDT 2000
>Closed-Date:    
>Last-Modified:  Mon Feb 04 01:05:20 UTC 2013
>Originator:     Annelise Anderson
>Release:        FreeBSD 4.0-STABLE i386
>Organization:
>Environment:

	

>Description:

	
Shells installed from ports come without dot files.  Why not provide
dot files to be placed in /usr/local/share/skel, and alter adduser to
provide the option of installing dot files from both /usr/share/skel
and /usr/local/share/skel?

The dot files should (I guess) be consistent with those provided for
sh and csh/tcsh.  Actually tcsh isn't a really a problem as it reads
.cshrc if .tcshrc isn't available. The setup of zsh is not obvious. 

My own view is that on initial installation, the dot files should
provide prompts that indicate user, hostname (without domain), and
location in the file system (pwd).  On su -m, the prompt character
should change from $,%, or > to #.  Who am I and where am I?

The following .bash_profile and .bashrc do this for bash; I have some
doubts about them, because it seems that it's necessary to re-read
.bash_profile for the pwd part to work after su -m.  They don't
set ENV, but this seems not to be essential. 


>How-To-Repeat:

	

>Fix:

	
See above.

>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: gnats-admin->freebsd-bugs 
Responsible-Changed-By: phantom 
Responsible-Changed-When: Sat Jul 8 07:13:22 PDT 2000 
Responsible-Changed-Why:  
Misfiled PR 

http://www.freebsd.org/cgi/query-pr.cgi?pr=19573 
State-Changed-From-To: open->feedback 
State-Changed-By: sheldonh 
State-Changed-When: Mon Jul 10 05:37:34 PDT 2000 
State-Changed-Why:  
> Why not provide dot files to be placed in /usr/local/share/skel, 
> and alter adduser to provide the option [...] 

Indeed, why not? :-) 

If I were you, I'd produce patches that abstain from actually 
introducing any new dot files.  Just add the machanism to 
handle them. 

That way, your idea (which is good) is not lost in a religious war 
about what should be in dot files. :-) 


http://www.freebsd.org/cgi/query-pr.cgi?pr=19573 
State-Changed-From-To: feedback->open 
State-Changed-By: des 
State-Changed-When: Mon Mar 12 16:40:15 PST 2001 
State-Changed-Why:  
Still an issue. 


Responsible-Changed-From-To: freebsd-bugs->des 
Responsible-Changed-By: des 
Responsible-Changed-When: Mon Mar 12 16:40:15 PST 2001 
Responsible-Changed-Why:  
I'll see what I can whip up for zsh and bash. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=19573 
State-Changed-From-To: open->suspended 
State-Changed-By: des 
State-Changed-When: Tue Nov 27 05:42:08 PST 2001 
State-Changed-Why:  
Still a good idea, but I don't have time to work on it right now. 

http://www.FreeBSD.org/cgi/query-pr.cgi?pr=19573 
Responsible-Changed-From-To: des->eadler 
Responsible-Changed-By: eadler 
Responsible-Changed-When: Sat Sep 15 23:52:24 UTC 2012 
Responsible-Changed-Why:  
des does not appear to be working on it and I made the cshrc shell 
defaults 

http://www.freebsd.org/cgi/query-pr.cgi?pr=19573 
State-Changed-From-To: suspended->open 
State-Changed-By: eadler 
State-Changed-When: Mon Feb 4 01:05:16 UTC 2013 
State-Changed-Why:  
I just don't have time to deal with this 


Responsible-Changed-From-To: eadler->freebsd-bugs 
Responsible-Changed-By: eadler 
Responsible-Changed-When: Mon Feb 4 01:05:16 UTC 2013 
Responsible-Changed-Why:  
I just don't have time to deal with this 

http://www.freebsd.org/cgi/query-pr.cgi?pr=19573 
>Unformatted:
