FreeBSD sh on Linux?

Yes, tcsh(1) is also available on most distributions. Although the versions might differ a little.
 
On Debian/Ubuntu dash is probably the closest thing. Other distributions may also have ash.

https://en.wikipedia.org/wiki/Almquist_shell

Isn't that basically the same as the FreeBSD shell?

The manpages are very similar, anyway (and a hell of a lot more readable than bash's, which is an abomination of a manpage)

Yes, tcsh(1) is also available on most distributions. Although the versions might differ a little.

You almost make it sound like it undergoes a lot of changes ;-)
 
Isn't that basically the same as the FreeBSD shell?
It is. As far as I know 'our' /bin/sh is also based on the original Almquist Shell. There may be some small implementation differences but they should all be compatible with each other. The differences certainly aren't as big as the differences with bash for example.

You almost make it sound like it undergoes a lot of changes ;-)
Not much indeed. But I have noticed some slight differences on various different Linux distributions compared to FreeBSD's tcsh(1). It's good to be aware of it ;)
 
I don't see why you would need to install a shell on Linux for "FreeBSD compatibility". The bourne shells are very closely related and if you stick to the lowest common denominators when writing your scripts your scripts will work correctly on wide variety of platforms without any changes.
 
Back
Top