diff options
| author | Laurent Bercot <ska-skaware@skarnet.org> | 2025-03-26 05:02:55 +0000 |
|---|---|---|
| committer | Laurent Bercot <ska@appnovation.com> | 2025-03-26 05:02:55 +0000 |
| commit | 15583497da174dd17b7b44701dcb000f46c235ed (patch) | |
| tree | 97cc814558754a20adb507d8cedb847f0792b859 | |
| parent | ea714e771e8964114285915acacf80707cc17bdd (diff) | |
| download | execline-15583497da174dd17b7b44701dcb000f46c235ed.tar.gz | |
Add Sertonix's quine
Signed-off-by: Laurent Bercot <ska@appnovation.com>
| -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 |
