Page MenuHomeFreeBSD

documentation: Bourne shell -> POSIX shell
ClosedPublic

Authored by ziaee on Mon, Mar 23, 9:02 PM.
Tags
None
Referenced Files
F152085753: D56054.id174335.diff
Sun, Apr 12, 3:25 PM
Unknown Object (File)
Sun, Apr 12, 10:22 AM
Unknown Object (File)
Sun, Apr 12, 12:16 AM
Unknown Object (File)
Sat, Apr 11, 11:29 PM
Unknown Object (File)
Sat, Apr 11, 8:04 PM
Unknown Object (File)
Sat, Apr 11, 8:04 PM
Unknown Object (File)
Sat, Apr 11, 8:04 PM
Unknown Object (File)
Sat, Apr 11, 6:37 PM
Subscribers

Details

Summary

The FreeBSD shell is a POSIX compatible shell. It evolved over several
decades from the Almquist shell, which was preceeded a decade before
that by the Bourne shell. Most readers today have never seen a Bourne
shell. If someone wants to learn to use our shell, they need to look for
tutorials on the POSIX shell. Align descriptions through out the tree
with this reality, consistent with it's manual and common parlance.

Diff Detail

Repository
R9 FreeBSD doc repository
Lint
Lint Skipped
Unit
Tests Skipped
Build Status
Buildable 71818
Build 68701: arc lint + arc unit

Event Timeline

ziaee requested review of this revision.Mon, Mar 23, 9:02 PM
ziaee created this revision.
documentation/content/en/books/faq/_index.adoc
421

I'm not sure if that would be accurate. As far as I know, .shrc is not really a POSIX thing. .shrc seems to be specific to FreeBSD sh(1). NetBSD, for instance, has almost the same Almquist Shell as /bin/sh (which is POSIX), but it uses .shinit instead of .shrc. So I suspect that this sentence may be a little bit confusing: .shrc is not guaranteed to work with every implementation of POSIX shell.

Good catch! Switch both shell names in that section to manpage links.

documentation/content/en/books/handbook/config/_index.adoc
589

To me, it doesn't seem necessary to specify that the shell script is POSIX in this case. In fact, all that we can see here is that mycustomscript.sh is executed, we can't tell whether it's POSIX or not. Yes, it has a .sh extension, but the extension itself doesn't mean anything, we can put #!/usr/local/bin/bash inside and it's no longer a POSIX script. So I would suggest to omit this detail here.

These little touches make all the difference. Thank you for your
conscious thought on these details Artem.

mhorne added a subscriber: mhorne.

Not an authority on shells and their lineage, but I certainly agree with your assessment in the description.

documentation/content/en/articles/freebsd-update-server/_index.adoc
92

I think here too.

This revision is now accepted and ready to land.Mon, Mar 30, 2:44 PM

add missing copyright symbol. Good catch, thanks for the review!

This revision now requires review to proceed.Mon, Mar 30, 4:09 PM
This revision is now accepted and ready to land.Mon, Mar 30, 4:38 PM
This revision was automatically updated to reflect the committed changes.