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 | |
parent | 3fde941ae33bd70edf015b3c72997aef703ebf6d (diff) | |
download | execline-77a47b2c5e7c3243743bd8d7594366f498e9cef7.tar.xz |
More modifications, and doc change
Diffstat (limited to 'examples')
-rwxr-xr-x | examples/etc/execline-shell | 18 | ||||
-rwxr-xr-x | examples/etc/execline-startup | 4 |
2 files changed, 11 insertions, 11 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 $@ diff --git a/examples/etc/execline-startup b/examples/etc/execline-startup index 4afc557..6e5769a 100755 --- a/examples/etc/execline-startup +++ b/examples/etc/execline-startup @@ -2,8 +2,8 @@ /bin/multisubstitute { - importas -i HOME HOME - importas -i LOGNAME LOGNAME + $ -i HOME HOME + $ -i LOGNAME LOGNAME } /bin/export USER ${LOGNAME} /bin/s6-envdir /etc/env-startup |