From 15583497da174dd17b7b44701dcb000f46c235ed Mon Sep 17 00:00:00 2001 From: Laurent Bercot Date: Wed, 26 Mar 2025 05:02:55 +0000 Subject: Add Sertonix's quine Signed-off-by: Laurent Bercot --- doc/index.html | 3 +++ doc/quine-sertonix.txt | 17 +++++++++++++++++ 2 files changed, 20 insertions(+) create mode 100644 doc/quine-sertonix.txt 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 using only echo, then
  • Another quine, provided by David Madore. It uses the external command printf. It is longer, but quite stylish.
  • +
  • Another quine, provided by Sertonix. +This one only uses commands from the execline package, and no external +commands!
  • Related resources

    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 -- cgit v1.3.1