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 /examples | |
parent | 126ebee710d8bc835f5a42176cc92c6fde3a64c1 (diff) | |
download | execline-670dc2343498421163545001b298125cec589105.tar.xz |
Edit execline-shell, quine-prj
Diffstat (limited to 'examples')
-rwxr-xr-x | examples/etc/execline-shell | 11 |
1 files changed, 5 insertions, 6 deletions
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 $@ |