Closed noamross closed 10 years ago
On Thu, Jul 10, 2014 at 02:47:53PM -0700, Noam Ross wrote:
Unfortunately I have not found any source that documents these differences comprehensively.
I think the best approach here is just to stick to POSIX, which should be supported on all of our systems, and avoid any extensions beyond that (since they aren't very portable).
I think the best approach here is just to stick to POSIX
Agree.
@noamross What about moving this not as the first item at "Teaching Notes" section?
@wking Do you know how to the the POSIX "man page" from the terminal? AFAICT using man
will get the documentation from GNU Project.
On Thu, Jul 10, 2014 at 03:30:53PM -0700, r-gaia-cs wrote:
Do you know how to the the POSIX "man page" from the terminal? AFAICT using
man
will get the documentation from GNU Project.
POSIX man pages should be installed in '*p' sections 1. So general POSIX commands are stored in section 1p. That means:
$ man 1p ls
will give you the POSIX docs for ls.
In practice will instructors know the difference between POSIX-compliant commands and extensions? I think its useful to have a list of likely trip-ups.
On Thu, Jul 10, 2014 at 03:45:53PM -0700, Noam Ross wrote:
In practice will instructors know the difference between POSIX-compliant commands and extensions?
Maybe not, but the lesson material should only list POSIX commands. If instructors (or students) wander off the beaten path, you just need a general idea in the back of their mind reminding them that not everything their system supports will be on all POSIX systems. Trying to enumerate the differences seems like a lot of work, and I could certainly not internalize a large list of such extensions. Trying to pick out “important” differences also sounds difficult.
I've updated this to be more general.
I added this section and included two differences found at the UC Davis workshop and another I've come across. There are a number of others (such as differences in
sed
options), but I've excluded them because they seem too advanced or esoteric to likely come up in these lessons. Unfortunately I have not found any source that documents these differences comprehensively.