The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
.
google unix.com



UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
passing variable from bash to perl from bash script arsidh Shell Programming and Scripting 10 06-04-2008 01:25 PM
callint Kshell script from bash default shell roopla Shell Programming and Scripting 0 11-13-2006 10:41 AM
Problem setting up Bash user account sumanroyc UNIX for Advanced & Expert Users 2 10-27-2006 06:57 PM
Setting a boot device alias on Sun hardware 98_1LE UNIX for Dummies Questions & Answers 3 04-12-2002 12:09 AM
bash: setting arrays Kriton UNIX for Dummies Questions & Answers 3 07-20-2001 01:35 PM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 07-13-2005
VENC22's Avatar
VENC22 VENC22 is offline
Registered User
  
 

Join Date: Apr 2005
Posts: 15
Query regarding alias and setting bash as a default script

Hi All,
I am setting bash as my working shell in my .profile file.
So I have written a line :
bash
as the list line in my .profile
I want to use alias as follows:
alias me='who am i'
When i log in, as expeced I enter the bash shell but alias doesn't work.
Is it because the alias is defined for other shell than bash??

thanks
ven
  #2 (permalink)  
Old 07-13-2005
RTM's Avatar
RTM RTM is offline Forum Advisor  
Hog Hunter
  
 

Join Date: Apr 2002
Location: On my motorcycle
Posts: 3,039
Quote:
Is it because the alias is defined for other shell than bash?
Exactly. You define the alias and then start a child process into bash - until you exit out of the child process, none of your alias would work UNLESS you put them in the 'profile' that bash may use BUT that may also give you an endless loop of going into new shells (it matters what your original shell is). Suggest you change your original shell in your account instead.
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 11:47 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0