csh for root and ksh for user on my OpenBSD boxes. csh for root and mksh for user on my FreeBSD box.
# ls /boot
# cd !$
cd /boot
# ls /boot
# cd !$
mksh: cd: /!$ - No such file or directory
prev-hist-word: [n] ^[., ^[_
The last (nth) word of the previous (on repeated execution, sec-
ond-last, third-last, etc.) command is inserted at the cursor.
Use of this editing command trashes the mark.
DutchDaemon said:Weird Works fine here, with the 'left alt' and the 'right alt (alt gr)'.
vermaden said:My choices are:
#! /bin/sh for scripting
ZSH for interactive use
CSH for root account (also often the first thing I type on the root prompt is 'zsh' if its avialable)
Mel_Flynn said:Code:make -C /usr/ports/shells/bash -D WITH_STATIC_BASH -DWITHOUT_NLS PREFIX=/ install
Library problem and "no mounted /usr" problem solved. The rest is paranoia. It's easy to change the shell back to csh for problem reporting if you suspect the shell to play a roll with your bug.
su(1) has quite a few advantages over sudo as shell/command wrapper, especially in machine stress situations and because sudo tries to be too smart about your environment variables.
Of course, the conservative "feed the newbies babyfood" answer is to not change root shell.
MartijnAtLico said:I use zsh.. currently I only use about 5% of it's functionality, but someday I'm going to do great things with it
http://friedcpu.wordpress.com/2007/07/24/zsh-the-last-shell-youll-ever-need/
UNIXgod said:+1 but I never change my shell under root. even if it's avalable. Even the zsh guys don't suggest it for root.
I can't begin to explain the problems that could occure if the root shell is changed.
chrcol said:please explain since I have ran root using bash for a numbr of years without noticing problems.
the only problem I know off really is if the bash binary breaks preventing login.
You must mean you were aware of toor prior to your issue and enabled it. Making toor available to a remote login isn't something that's good practice if that's what you did.chrcol said:I also remotely administer servers.
in over 5 years I think I have had bash break twice, the last time it happened I was aware of toor and it was a non issue as I simply logged into toor, and recompiled bash to fix it.
Difficult to respond to. rehash and the frequency required has never caused me a second thought.rehash - urrgh
I guess that's a per-user preference because that's primarily the reason I hate bash. It's command history filter is near useless IMO. Most of the time it's just easier to retype the whole thing under bash. tcsh and the FreeBSD defaults allow me to quickly find complex commands I've already got in history.poor command history system
Actually most scripts are shebang'd to run with the shell they were written for which is hopefully /bin/sh. Many also test for the proper shell before executing main code. Also please note this is about the interactive, not scripting shell. I'm not saying you should useless compatible with most scripts out there.
#!/bin/tcsh
Use the appropriate tcsh variables and you won't have a problem.my prompt variable doesnt work on it.
I don't think so. It's typically a new user issue(coming from linux) and toor account is disabled by default. Expecting the new user to remember and deal with all the complications of changing the root shell is just asking for trouble.its down to choice which I am fine with, but am wondering if this changing root shell thing is simply overstated given that there is a recovery account.
chrcol said:please explain since I have ran root using bash for a numbr of years without noticing problems.
the only problem I know off really is if the bash binary breaks preventing login.
chrcol said:why are people mentioning enabling toor?
I have done nothing to specifically enable toor and am able to use it on newly deployed servers.
# su
from a super-user account. You cannot login with a default toor account meaning there's no way to fix your bash error you claimed to earlier via toor unless you have explicitly setup the account. # vipw
look at the toor line. Notice the '*' in the second field? That mean that account cannot login.