|
|
OT - A possible solution for odd Terminal behaviors
Slightly off topic but maybe someone can point me to the right place. I am still using tcsh for my shell as I can not get my alias entries in the correct format. I have made a '.bash_profile' (I think I duplicated my tcsh file) and also '.bashrc' to include additional paths. However, when I try to set my default shell to bash I get errors see below). I have looked for info in my unix books and online and can not find anything that shows the difference even when the topic is discussed specifically.
After editing my original this is what I have. It yields errors on launch asking for the type of terminal
I type in xterm to just see what I can get
This is what I edited to; would have to get my original from home BU
Any pointers?
OT - A possible solution for odd Terminal behaviors
bash and tcsh are very different; to debug, perhaps run 'bash -x' or 'bash --verbose' to see what might be going wrong?
OT - A possible solution for odd Terminal behaviors
These are broken. You can't put spaces around the = in alias lines. You have to use:
Also, aliases can't take arguments in bash so this won't work:
Instead use a function:
Be sure to leave a space after the { and put a semicolon after the command. You can also use a multi-line syntax for longer functions:
In this case semicolons aren't necessary since the commands are on individual lines.
Hope this helped.
OT - A possible solution for odd Terminal behaviors
Thanks, exactly what I needed.
OT - A possible solution for odd Terminal behaviors
If you want to check a bash script (which is what this is) you can always run it like this: |
SearchFrom our Sponsor...Latest Mountain Lion HintsWhat's New:HintsNo new hintsComments last 2 daysLinks last 2 weeksNo recent new linksWhat's New in the Forums?
Hints by TopicNews from Macworld
From Our Sponsors |
|
Copyright © 2014 IDG Consumer & SMB (Privacy Policy) Contact Us All trademarks and copyrights on this page are owned by their respective owners. |
Visit other IDG sites: |
|
|
|
Created this page in 0.15 seconds |
|