Skip to content
This repository has been archived by the owner on Jan 3, 2018. It is now read-only.

Commit

Permalink
Moved, reworded POSIX-compliance note
Browse files Browse the repository at this point in the history
  • Loading branch information
noamross committed Jul 10, 2014
1 parent 8bb8467 commit 65b7f03
Showing 1 changed file with 6 additions and 9 deletions.
15 changes: 6 additions & 9 deletions novice/teaching/02-shell.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,15 +55,6 @@ as long as learners using Windows do not run into roadblocks such as:

#### Teaching Notes

* Command line utilities in OS X and Windows terminal emulators do include all the extensions beyond POSIX found in many Linux distributions. Avoid using these extensions, as they may not be available for students. Some examples:

* POSIX `ls` does not have an `--ignore=` or `-I` option
* POSIX `head` takes `-n 10` or `-10`, but not the long form of `--lines=10`
* Many Linux commands allow options to be specified after their arguments (e.g. `ls file1
file2 -l`), while most POSIX commands require options to come strictly first (`ls -l file1
file2`).


* Have learners open a shell
and then do `whoami`,
`pwd`,
Expand Down Expand Up @@ -137,6 +128,12 @@ as long as learners using Windows do not run into roadblocks such as:
so that they can find it easily
and watch it evolve.
* Stay within POSIX-compliant commands, as all the teaching materials do.
Your particular shell may have extensions beyond POSIX that are not available
on other machines, especially the default OSX bash and Windows bash emulators.
For example, POSIX `ls` does not have an `--ignore=` or `-I` option, and POSIX
`head` takes `-n 10` or `-10`, but not the long form of `--lines=10`.
#### Windows
Installing Bash and a reasonable set of Unix commands on Windows
Expand Down

0 comments on commit 65b7f03

Please sign in to comment.