diff options
author | Laurent Bercot <ska-skaware@skarnet.org> | 2018-03-16 08:18:53 +0000 |
---|---|---|
committer | Laurent Bercot <ska-skaware@skarnet.org> | 2018-03-16 08:18:53 +0000 |
commit | 77a47b2c5e7c3243743bd8d7594366f498e9cef7 (patch) | |
tree | fb807c0b0c20db34f5108df67da6b4d64e5bc8e6 /examples/etc/execline-shell | |
parent | 3fde941ae33bd70edf015b3c72997aef703ebf6d (diff) | |
download | execline-77a47b2c5e7c3243743bd8d7594366f498e9cef7.tar.xz |
More modifications, and doc change
Diffstat (limited to 'examples/etc/execline-shell')
-rwxr-xr-x | examples/etc/execline-shell | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/examples/etc/execline-shell b/examples/etc/execline-shell index ac8c141..3e406d7 100755 --- a/examples/etc/execline-shell +++ b/examples/etc/execline-shell @@ -1,18 +1,18 @@ #!/bin/execlineb -S0 -backtick -n defaulthome +` -n defaulthome { - if -nt + && -nt { - backtick -n defaultuser { id -un } - importas -u defaultuser defaultuser - importas -D $defaultuser USER USER - redirfd -w 2 /dev/null - homeof ${USER} + ` -n defaultuser { id -un } + $ -u defaultuser defaultuser + $ -D $defaultuser USER USER + < -w 2 /dev/null + ~ ${USER} } s6-echo / } -importas -u defaulthome defaulthome -importas -D $defaulthome HOME HOME +$ -u defaulthome defaulthome +$ -D $defaulthome HOME HOME tryexec { ${HOME}/.execline-shell $@ } /bin/sh $@ |