diff options
Diffstat (limited to 'doc')
| -rw-r--r-- | doc/index.html | 3 | ||||
| -rw-r--r-- | doc/quine-sertonix.txt | 17 |
2 files changed, 20 insertions, 0 deletions
diff --git a/doc/index.html b/doc/index.html index 324f259..f3f5fe6 100644 --- a/doc/index.html +++ b/doc/index.html @@ -228,6 +228,9 @@ it <a href="quine-prj-2.txt">using only <tt>echo</tt></a>, then <li> Another <a href="quine-dam.txt">quine</a>, provided by <a href="http://www.madore.org/~david/">David Madore</a>. It uses the external command <tt>printf</tt>. It is longer, but quite stylish. </li> +<li> Another <a href="quine-sertonix.txt">quine</a>, provided by Sertonix. +This one only uses commands from the execline package, and no external +commands! </li> </ul> <h2> Related resources </h2> diff --git a/doc/quine-sertonix.txt b/doc/quine-sertonix.txt new file mode 100644 index 0000000..7ad73a3 --- /dev/null +++ b/doc/quine-sertonix.txt @@ -0,0 +1,17 @@ +#!/bin/execlineb +export \# 1 +define 1 "#!/bin/execlineb +export ${b}# 1 +define 1 ${q}${1}${q} +export 1 $1 +define q ${b}${q} +define b ${b}${b} +importas 1 1 +export 1 $1 +dollarat" +export 1 $1 +define q \" +define b \\ +importas 1 1 +export 1 $1 +dollarat |
