Fix infinite loop hang in 1996/august
In macOS, for example, one of the commands suggested by the author and
by the judges (which was put into try.sh by me a while back) would cause
it to hang. The author's remarks made me try something: a file has to
first have lines starting with '#' (^#) stripped. Thus in the author's
remarks and the try.sh script this command was added:
sed -i'' '/^#/d' august.oc
and now it runs to completion.
The README.md file has been format and typo fixed and this should
complete 1996/august.
This commit is contained in:
1 parent
1181899ed9
commit
d801a7d473
5 files changed
+29
-47
No files matched your search
@@ -14,6 +14,7 @@ cat parse.oo fac.oc | ./august | ./august
|
||||
|
||||
rm august.oc
|
||||
make august.oc
|
||||
sed -i'' '/^#/d' august.oc
|
||||
cat august.c august.oc | ./august > august.oo
|
||||
cat august.oo test.oo | ./august
|
||||
cat august.oo august.oo fac.oo | ./august
|
||||
|
||||
Reference in new issue
Block a user