diff options
author | Laurent Bercot <ska-skaware@skarnet.org> | 2018-03-31 22:46:13 +0000 |
---|---|---|
committer | Laurent Bercot <ska-skaware@skarnet.org> | 2018-03-31 22:46:13 +0000 |
commit | 670dc2343498421163545001b298125cec589105 (patch) | |
tree | 557443c09077617444d3159fa51b30c175cbe164 | |
parent | 126ebee710d8bc835f5a42176cc92c6fde3a64c1 (diff) | |
download | execline-670dc2343498421163545001b298125cec589105.tar.xz |
Edit execline-shell, quine-prj
-rw-r--r-- | doc/quine-prj.txt | 4 | ||||
-rwxr-xr-x | examples/etc/execline-shell | 11 |
2 files changed, 7 insertions, 8 deletions
diff --git a/doc/quine-prj.txt b/doc/quine-prj.txt index e567d07..eca106c 100644 --- a/doc/quine-prj.txt +++ b/doc/quine-prj.txt @@ -1,5 +1,5 @@ -#!/command/execlineb -= e "#!/command/execlineb +#!/bin/execlineb += e "#!/bin/execlineb = e $q${E}${q} env e=$e = q ${b}${q} diff --git a/examples/etc/execline-shell b/examples/etc/execline-shell index f16d033..abe5aa0 100755 --- a/examples/etc/execline-shell +++ b/examples/etc/execline-shell @@ -1,16 +1,15 @@ #!/bin/execlineb -S0 -` -n defaulthome +` -n home { && -nt { - ` -n defaultuser { id -un } - $ -u defaultuser defaultuser $ -D $defaultuser USER USER + ` -n user { id -un } + $ -u user user $ -D $user USER USER < -w 2 /dev/null ~ ${USER} } - s6-echo / + echo / } -$ -u defaulthome defaulthome -$ -D $defaulthome HOME HOME +$ -u home home $ -D $home HOME HOME tryexec { ${HOME}/.execline-shell $@ } /bin/sh $@ |