Go Back   The macosxhints Forums > OS X Help Requests > UNIX - Newcomers



Reply
 
Thread Tools Rate Thread Display Modes
Old 01-20-2004, 05:20 PM   #1
Onyx
Prospect
 
Join Date: Nov 2002
Posts: 19
Help with .bashrc

Just switched to OS 10.3. In 10.2 I was able to use a .tcshrc file in my home directory to influence the terminal's behavior. In 10.3 it appears that the default terminal app has switched to bash. For some reason I am not able to get my terminal to respond/recognize the .bashrc file I created with pico. Is there something that I'm missing here? Did I forget to do something? Any help is appreciated.

-Onyx
Onyx is offline   Reply With Quote
Old 01-20-2004, 05:38 PM   #2
saurya_s
Major Leaguer
 
Join Date: Dec 2003
Location: Oxford
Posts: 371
Re: Help with .bashrc

Quote:
Originally posted by Onyx
Just switched to OS 10.3. In 10.2 I was able to use a .tcshrc file in my home directory to influence the terminal's behavior. In 10.3 it appears that the default terminal app has switched to bash.

Is it really bash? type $SHELL and see. if it is bash, cheack for contents of /etc/profile
I think it doesn't change the shell unless you do from Netinfo manager.
SS

For some reason I am not able to get my terminal to respond/recognize the .bashrc file I created with pico. Is there something that I'm missing here? Did I forget to do something? Any help is appreciated.

-Onyx

__________________
New OS X User ,1.25 GHz G4 Powerbook with Superdrive Mac OS X Panther
saurya_s is offline   Reply With Quote
Old 01-20-2004, 05:53 PM   #3
cstuder
Prospect
 
Join Date: Jul 2003
Location: Switzerland
Posts: 49
Stupid historical issue...

Create another file called .bash_profile in your home directory and enter the following code in it:

Code:
if [ -f ~/.bashrc ]; then . ~/.bashrc; fi
Bye,
christian
cstuder is offline   Reply With Quote
Old 01-20-2004, 06:56 PM   #4
Onyx
Prospect
 
Join Date: Nov 2002
Posts: 19
thanks!

That appeared to work -by entering the command into the .bash_profile.

Now another stupid question....

Based on reading other posts it looks like you enter aliases in bash just like in tcsh (e.g. alias xxx 'alias here'). Strangely aliases in my .bashrc file come with the error message:

-bash: alias: xxx: not found

What's that about!?!

Sorry for the newbie questions.. bash is sort of new to me.

Thanks for the help!

-Onyx
Onyx is offline   Reply With Quote
Old 01-20-2004, 07:02 PM   #5
cstuder
Prospect
 
Join Date: Jul 2003
Location: Switzerland
Posts: 49
Not stupid. The syntax changed and is now:

Code:
alias newcommand="old command line"
This and more information under
Code:
man bash
.

Bye,
christian
cstuder is offline   Reply With Quote
Old 03-17-2004, 05:40 PM   #6
mschneider
Prospect
 
Join Date: Jan 2002
Location: Solothurn, Switzerland
Posts: 9
christian,

seems to me that there is something different under 10.3

-> can't specifiy paths with umlauts

not sure if this is really new - didn't use the terminal often in the past few months

is there a way to specify paths/filenames containing umlauts?

strange: I can use umlauts on my dektop G5 - but not on the powerbook (both 10.3.3)

thank you very much!

markus

Last edited by mschneider; 03-17-2004 at 05:48 PM.
mschneider is offline   Reply With Quote
Old 03-17-2004, 07:04 PM   #7
cstuder
Prospect
 
Join Date: Jul 2003
Location: Switzerland
Posts: 49
Guten Abend... ;-)

Well, I have more troubles with umlauts now in Panther too, but never really bothered to do something about it.

I'm not sure whether it has something to do with the terminal-type specified in the preferences or another setting. So sorry, I can't help you there.

Bye,
christian
cstuder is offline   Reply With Quote
Old 03-18-2004, 02:20 AM   #8
mschneider
Prospect
 
Join Date: Jan 2002
Location: Solothurn, Switzerland
Posts: 9
path (umlauts) by drag&drop

well, glad that I'm not the only one

I believe that it depends on settings - but couldn't do anything to be able to set path by drag and drop again.

Changed the shell (csh, tcsh), terminal settings, but got just an error when did a 'cd blahblah' ('blahblah' by drag&drop; containing umlauts). Couldn't find a setting that shows umlauts (only esc-seq.) in the command line

the reason for this trying: Got a CD from a WinMachine with Filemaker files... they were all read-only (after copying to the HD!) - then I tried to 'chmod' all of them in one step

Finally, I copied the folder containing these files to the desktop and did this 'chmod'

Later on, I realized that there is a directory-name in my path that causes the problems (it's in the middle of the path)
After stepping through the path one-by-one, I could access the files - but not via drag&drop.

path to long?? But it cut some letters in the middle..

strange

thanks

markus
mschneider is offline   Reply With Quote
Old 03-18-2004, 02:35 AM   #9
cstuder
Prospect
 
Join Date: Jul 2003
Location: Switzerland
Posts: 49
Hey, maybe I can invite you over to www.osxserver.ch. It's a swiss forum and perhaps somebody there can help you.

Bye,
christian
cstuder is offline   Reply With Quote
Reply

Thread Tools
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

Forum Jump


All times are GMT -5. The time now is 03:31 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Site design © Mac Publishing LLC; individuals retain copyright of their postings
but consent to the possible use of their material in other areas of Mac Publishing LLC.