Re: Bourne shell deprecated?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



On Tue, Apr 26, 2016 at 07:27:26PM -0700, Alice Wonder wrote:
> 
> Some of the BSDs use to have a bourne shell and maybe some do, I don't know.
> 
Yup.  

> bash is mostly compatible with bourne (can run most bourne scripts)
> which is why /bin/sh is a symlink to /bin/bash on GNU and most other
> *nix systems.

Bash can run Bourne, but not necessarily vice versa, which can be
problematic if, say, moving a Linux script to a BSD or AIX box.   I
remember something I'd done which used, IIRC, $UID, without realizing it
was a bashism, instead of using id -u.  


-- 
Scott Robbins
PGP keyID EB3467D6
( 1B48 077D 66F6 9DB0 FDC2 A409 FA54 EB34 67D6 )
gpg --keyserver pgp.mit.edu --recv-keys EB3467D6

_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
https://lists.centos.org/mailman/listinfo/centos



[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux