Execline

From Esolang
Jump to navigation Jump to search
This article is not detailed enough and needs to be expanded. Please help us by adding some more information.
Execline
Designed by Laurent Bercot
Appeared in 2013
Computational class Unknown
Reference implementation [1]
File extension(s) .sh

execline is a scripting language designed to provide an alternative paradigm for shell scripts.

Introduction

Quoting [2],

execline is the first script language to rely entirely on chain loading. An execline script is a single argv, made up of a chain of programs designed to perform their action then exec() into the next one.

An implementation of execline consists of several dozen independent programs. Each program should be installed to the shell path, so that invoking a builtin execline command is done by running the corresponding program.

Examples

A quine by Paul Jarc using echo to emit code:

#!/command/execlineb -P
define e "#!/command/execlineb -P
define e ${q}${E}${q}
export E $e
define q ${b}${q}
define b ${b}${b}
importas E E
echo $e"
export E $e
define q \"
define b \\
importas E E
echo $e

A quine by Sertonix [3] using only execline commands:

#!/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