sh man page ....

RW rwmaillists at googlemail.com
Fri Oct 10 17:38:43 UTC 2014


On Fri, 10 Oct 2014 10:30:19 -0500
William A. Mahaffey III wrote:

> 
> 
> I have a FBSD 9.3 desktop that supplanted a Linux FC14 desktop used
> for web access, some light development, & other day-to-day tasks
> (i.e. my daily driver, so to speak). I had a bunch of shell scripts
> written to use Linux sh, which was in fact bash, which means it had a
> superset of the arithmetic operators that traditional sh had. When I
> use these scripts under sh under FBSD 9.3, they largely work, though
> there are some minor differences (empty strings evaluate to zero (0)
> under bash, error under sh). 

Can you give an example?

$ sh
$ echo $((1+c))
1


More information about the freebsd-questions mailing list