Merge pull request #1629 from xexyl/dlowe13-fix

Fix synopsis in 2013/dlowe/README.md file
This commit is contained in:
Landon Curt Noll authored and GitHub committed 2023-12-04 16:15:12 -08:00
commit bfcfe26392
4 files changed
+46 -5

No files matched your search

+1
View File
@@ -1,3 +1,4 @@
primenum
primenum.orig
prog.orig
try.sh.txt
+3 -3
View File
@@ -28,7 +28,7 @@ rm -f try.sh.txt
echo "$ ./primenum 101 < try.sh | ./primenum n > try.sh.txt" 1>&2
./primenum 101 < try.sh | ./primenum n > try.sh.txt
echo "$ diff try.sh try.sh.txt"
read -r -n 1 -p "Press any key to see diff (through less): " 1>&2
diff try.sh try.sh.txt|less
read -r -n 1 -p "Press any key to see diff (space = next page, q = quit): " 1>&2
diff try.sh try.sh.txt|less -EXF
rm -f try.sh.txt
+40
View File
@@ -0,0 +1,40 @@
#!/usr/bin/env bash
#
# try.sh - demonstrate IOCCC winner 2000/rince
#
# make sure CC is set so that when we do make CC="$CC" it isn't empty. Doing it
# this way allows us to have the user specify a different compiler in an easy
# way.
if [[ -z "$CC" ]]; then
CC="cc"
fi
make CC="$CC" everything >/dev/null || exit 1
# clear screen after compilation so that only the entry is shown
clear
echo "$ ./rince" 1>&2
./rince
echo "$ ./rince 0.001 $(./dmy2jd 7.8 1 1610)" 1>&2
./rince 0.001 $(./dmy2jd 7.8 1 1610)
echo "$ ./rince 0.01" 1>&2
./rince 0.01
echo "$ ./rince 0 2441193.6" 1>&2
./rince 0 2441193.6
echo "$ ./rince 0.01 2441193.6" 1>&2
./rince 0.01 2441193.6
echo "$ ./rince 0 $(./dmy2jd 7.8 1 1610)" 1>&2
./rince 0 $(./dmy2jd 7.8 1 1610)
echo "$ ./rince 0 $(./dmy2jd 8.8 1 1610)" 1>&2
./rince 0 $(./dmy2jd 8.8 1 1610)
echo "$ ./rince 0 $(./dmy2jd 10.8 1 1610)" 1>&2
./rince 0 $(./dmy2jd 10.8 1 1610)
+2 -2
View File
@@ -19,10 +19,10 @@ For more detailed information see [2013 dlowe in bugs.md](/bugs.md#2013-dlowe).
## To use:
```sh
./dlowe [word...]
./dlowe [number...]
```
where `[word...]` is one or more words including numbers or otherwise.
where `[number...]` is one or more number, space separated.
### Try: