Prev | Current Page 230 | Next

Michael McCallister

"openSUSE Linux Unleashed"

kshrc_history
VISUAL=emacs
fi
;;
esac
SUSE recommends not editing this default system file, because it can be overwritten in a
system update. With this bit of code, bash checks for a local configuration file edited by
the system administrator, saved as /etc/bash.bashrc.local:
if test ???$is??? != ???ash??? ; then
#
# And now let??™s see if there is a local bash.bashrc
# (for options defined by your sysadmin, not SuSE Linux)
#
test -s /etc/bash.bashrc.local && . /etc/bash.bashrc.local
fi
As noted at the beginning of this section, bash is a shell environment for scripting. Other
shells are designed to be more interactive. Let??™s look at the leading example: the C shell.
Running tcsh
Bill Joy (later to become a founder of Sun Microsystems) wrote the original C shell in
college. He aimed to provide a more interactive work environment, with a syntax more
like the C programming language.
Interactive shells are focused on directly processing commands you type in, rather than
running scripts or files. Script-oriented shells such as bash can be used interactively, but it
is rarely a good idea to make a C shell run scripts.


Pages:
218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242
wróżby miłosne cukiernia-stykowscy.pl salon kosmetyczny kraków pompy ciepła Kalkulator kredytowy