UNIX commands font

Jean Gobin jeanfgobin at gmail.com
Thu Feb 21 01:02:14 PST 2013


Indeed, bash is the default shell on linux ... by default. You can change
it, and for instance, certain database softwares will require that either
csh or ksh be the login shell.

> I don't see how bash is a Linux-ism.
>

I see the point: bash tends to be associated with Linux. However, you may
run bash on pretty much any *nix.


> > Do modern BSDs tend to default to another shell?
>
> Yes.
>

FreeBSD defaults to csh, OpenBSD and NetBSD to ksh.


> In any case, changing shells is trivial.
>

Easier than to pronounce: chsh.



> Yes, diverting from the default and subscribing
> to something incompatible with the default shell
> is indeed trivial.
>
>
That's why well-written scripts start with a
SheBang<http://en.wikipedia.org/wiki/Shebang_(Unix)>:
rule of scriptisation #287, never assume anything about the environment
your script will run on.


-- 
Jean Gobin, CCENT, CCNA, CCNA Security
http://newsfromjean.blogspot.com/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-users/attachments/20130221/5ce6fe5c/attachment.html>


More information about the macports-users mailing list