From owner-freebsd-questions Wed Apr 26 5:41:18 2000 Delivered-To: freebsd-questions@freebsd.org Received: from elcb.co.za (ns1.elcb.co.za [196.26.96.130]) by hub.freebsd.org (Postfix) with SMTP id D3A1E37B7D3 for ; Wed, 26 Apr 2000 05:40:12 -0700 (PDT) (envelope-from mvincent@elcb.co.za) Received: from marius.elcb.co.za ([196.11.122.217] helo=MVincent) by elcb.co.za with smtp (Exim 3.12 #1) id 12kR7J-000GlL-00 for freebsd-questions@freebsd.org; Wed, 26 Apr 2000 14:40:33 +0200 From: "Marius Vincent" To: "freeBSD-Questions" Subject: Thrashing Bash Date: Wed, 26 Apr 2000 14:38:36 +0200 Message-ID: MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_0038_01BFAF8D.1AB23780" X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2910.0) Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG This is a multi-part message in MIME format. ------=_NextPart_000_0038_01BFAF8D.1AB23780 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit I have got a dialemma.Actually i am stupid not just to do it the traditional way but i guess i have my reasons. It goes like this...... I have root setup to use csh shell. So everytime I login via root i get a csh prompt. I want to leave it at this because bash is a addon when you install to bsd and Incase my box get screwed up and the shell is not there i get locked out of root.Now I want to create a little script that calls up bash for root.For instance I want to login as root and type in "b"(b will be a file calling up bash and *here is the problem* it must run PS1="[\u@\h \W]\\$ "). Now bash is a programm in it's own that when i execute it, it will open a shell in a shell,so then the file contaning PS1=blah will not run because there is a new shell being opend and the rest of the file is not being executed. Now how do i get PS1=blah to export to the terminal? I tried to create a .bash_profile and added the PS1=blah into it and it does not work. So what I am looking for is for bash to reinhibit the enviroment once I execute the shell in another shell. This must also work on a per user level not global. HOW?? Thanx Marius Vincent Technical ELCB Information Services ------=_NextPart_000_0038_01BFAF8D.1AB23780 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
 
 
I have = got a=20 dialemma.Actually i am stupid not just to do it the traditional way but = i guess=20 i have my reasons.
 
It = goes like=20 this......
I have root=20 setup to use csh shell. So everytime I login via root i get a csh=20 prompt.
I want = to leave it=20 at this because bash is a addon when you install to bsd and Incase my = box get=20 screwed up and the shell is not there i get locked out of root.Now I = want to=20 create a little script that calls up bash for root.For instance I want = to login=20 as root and type in "b"(b will be a file calling up bash and *here is = the=20 problem* it must run PS1=3D"[\u@\h \W]\\$ ").
 
Now = bash is a=20 programm in it's own that when i execute it, it will open a shell in a = shell,so=20 then the file contaning PS1=3Dblah will not run because there is a new = shell being=20 opend and the rest of the file is not being = executed.
 
Now = how do i get=20 PS1=3Dblah to export to the terminal?
I = tried to create a=20 .bash_profile and added the PS1=3Dblah into it and it does not=20 work.
 
So = what I am looking=20 for is for bash to reinhibit the enviroment once I execute the shell in = another=20 shell.
This = must also work=20 on a per user level not global.
HOW??
 
Thanx
 
Marius = Vincent
Technical
ELCB Information=20 Services
 
 
------=_NextPart_000_0038_01BFAF8D.1AB23780-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message