LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices

Reply
 
Search this Thread
Old 11-23-2011, 08:11 PM   #16
jthill
Member
 
Registered: Mar 2010
Distribution: Arch
Posts: 209

Rep: Reputation: 66

Code:
/bin/tcsh
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, 08:20 PM   #17
Lokelo
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?

Code:
[jc167987@login]$ cat /etc/shells
/bin/sh
/bin/bash
/sbin/nologin
/bin/tcsh
/bin/csh
/bin/zsh
/bin/ksh


[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, 09:25 PM   #18
jthill
Member
 
Registered: Mar 2010
Distribution: Arch
Posts: 209

Rep: Reputation: 66
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 :-)
 
  


Reply

Tags
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 06:23 AM
Sed qestion - how to use wildcards tensigh Linux - Software 5 03-04-2010 10:55 PM
wildcards with the "rename" command mattn Linux - General 3 05-13-2004 08:43 PM
ls command line, color and wildcards ioio85 Linux - Newbie 1 05-13-2004 06:01 AM
sed command linuxdev Linux - Newbie 9 02-24-2004 05:50 PM


All times are GMT -5. The time now is 08:12 PM.

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