Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 11-23-2011, 07:11 PM   #16
Registered: Mar 2010
Distribution: Arch
Posts: 211

Rep: Reputation: 67

And that explains the last puzzle. I just checked: tcsh does history substitution even inside single-quotes. I've never used it, I hear it has other gratuitous inconsistencies.

You're still very new to shells, may I recommend you switch to bash if only to get yourself on a shell most people will unthinkingly presume you're using? It'll be a little different but shouldn't be too hard.

The command to do it is "chsh -s /bin/bash". "cat /etc/shells" to get a list of the options it'll accept on your system if you're curious.
Old 11-23-2011, 07:20 PM   #17
LQ Newbie
Registered: Nov 2011
Location: Townsville
Posts: 15

Original Poster
Rep: Reputation: Disabled
Thanks for the additional information. I'm not sure if I can actually change the shell on the high performance computer.

Oh, and I think I forgot to answer this before, I log in using putty.

If I start my scripts with /bin/bash I should at least be safe there? It's just the active command lines that run on tcsh?

[jc167987@login]$ cat /etc/shells

[jc167987@login]$ chsh -s /bin/bash
chsh: can only change local entries; use ypchsh instead.

[jc167987@login ~]$ ypchsh -s /bin/bash
ypchsh: invalid option -- 's'

[jc167987@login ~]$ ypchsh /bin/bash
Unknown error
ypchsh: unknown user (uid=89649).
Old 11-23-2011, 08:25 PM   #18
Registered: Mar 2010
Distribution: Arch
Posts: 211

Rep: Reputation: 67
say 'man ypcsh', it'll tell you how to run it. Seems everyone uses putty, must be at least pretty good. Yes, to the /bin/bash part, from the command line you can also just say bash like "bash myscript", but /bin/bash is explicit for security. I still recommend changing, it won't be long at all before you start composing one-liners at the keyboard because that's pretty much what unix is made for, it's a toolmaker's paradise. He who made kittens put snakes in the grass, natch :-)


regular expression, sed

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Using sed with wildcards elliot01 Linux - Newbie 6 11-26-2010 05:23 AM
Sed qestion - how to use wildcards tensigh Linux - Software 5 03-04-2010 09:55 PM
wildcards with the "rename" command mattn Linux - General 3 05-13-2004 07:43 PM
ls command line, color and wildcards ioio85 Linux - Newbie 1 05-13-2004 05:01 AM
sed command linuxdev Linux - Newbie 9 02-24-2004 04:50 PM

All times are GMT -5. The time now is 06:58 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration