diff --git a/2001/westley/README.md b/2001/westley/README.md index 8e83f048e..d5fb6cbd5 100644 --- a/2001/westley/README.md +++ b/2001/westley/README.md @@ -47,15 +47,16 @@ For more detailed information see [2001 westley bugs](../../bugs.html#2001_westl The author stated that one can sort (ignoring leading blanks i.e. `sort -b`) the code by line and it will always sort the order of the input. -This is compiled by default; use `westley.sort` as you would `westley` above. +This is generated and compiled by default; use `westley.sort` as you would +`westley` above. ## Punch card code: -The author also stated that if you just sort the code you'll get the with -`sort`) version that just prints out the punch card. The -[westley.punch.c](%%REPO_URL%%/2001/westley/westley.punch.c) code is specifically so that Westley can punch -everyone in the face! :-) This is also compiled by default. +The author also stated that if you just sort the code (`sort westley.c`) you'll +get a version that just prints out the punch card. The `westley.punch.c` +(generated by `make` via `sort westley.c`) code is specifically so that Westley +can punch everyone in the face! :-) This is also compiled by default. ### Punch card try: diff --git a/2001/westley/index.html b/2001/westley/index.html index 69e1cbeb3..d6e3c065d 100644 --- a/2001/westley/index.html +++ b/2001/westley/index.html @@ -419,12 +419,13 @@ code below.

Sorted code:

The author stated that one can sort (ignoring leading blanks i.e. sort -b) the code by line and it will always sort the order of the input.

-

This is compiled by default; use westley.sort as you would westley above.

+

This is generated and compiled by default; use westley.sort as you would +westley above.

Punch card code:

-

The author also stated that if you just sort the code you’ll get the with -sort) version that just prints out the punch card. The -westley.punch.c code is specifically so that Westley can punch -everyone in the face! :-) This is also compiled by default.

+

The author also stated that if you just sort the code (sort westley.c) you’ll +get a version that just prints out the punch card. The westley.punch.c +(generated by make via sort westley.c) code is specifically so that Westley +can punch everyone in the face! :-) This is also compiled by default.

Punch card try:

    echo 'Brian Westley does it again!' | ./westley.punch 2>/dev/null

Alternate code: