Computing.Net > Forums > Unix > determines my default shell

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

determines my default shell

Reply to Message Icon

Name: mgonzalo
Date: February 1, 2008 at 04:00:14 Pacific
OS: HP-UX
CPU/Ram: hp
Product: B.10.20 A 9000/785
Comment:

I have two you machine a HP (HP-UX w-hp3 B.10.20 TO 9000/785 2008935932 two-user
license) and another Sun (SunOS isis1 5.10 Generic_118833-03 sun4u sparc SUNW,Sun-
Fire -V240) with UNIX and when I execute The following command to it determines my
default shell

%echo $$SHELL
I wait something in the way

%echo $$SHELL
/bin/csh

and however I obtain:

isis1% echo $$SHELL
9424SHELL
isis1%

hp3:/casa1>echo $$SHELL
hp3:/casa1>20607SHELL

that it means 9424 and 20607? Thank you.


"La experiencia es algo maravilloso. Nos permite reconocer un error cada vez que lo volvemos a cometer.", Franklin P. Jones



Sponsored Link
Ads by Google

Response Number 1
Name: nails
Date: February 1, 2008 at 12:21:17 Pacific
Reply:

I think you are trying to determine your default shell by looking at the SHELL variable. You really can't trust SHELL especially if you spawn a lot of child shells.

Take a look at this link:

http://www.samag.com/documents/s=10...

The first tip shows you a number of ways of determining the default shell. Maybe one will help you.


0
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Unix Forum Home


Sponsored links

Ads by Google


Results for: determines my default shell

Want to write my own shell? www.computing.net/answers/unix/want-to-write-my-own-shell/2578.html

help parsing data into a vCal item www.computing.net/answers/unix/help-parsing-data-into-a-vcal-item/5123.html

need some help! www.computing.net/answers/unix/need-some-help/2672.html