aboutsummaryrefslogtreecommitdiffstats
path: root/examples/etc/execline-shell
diff options
context:
space:
mode:
authorLaurent Bercot <ska-skaware@skarnet.org>2026-05-09 19:09:24 +0000
committerLaurent Bercot <ska-skaware@skarnet.org>2026-05-09 19:09:24 +0000
commit052be74f98489c711ac4f8a5421db39304e39a3f (patch)
treef4f25cef92c943445cecc2ee0c324817c9d87d66 /examples/etc/execline-shell
parentf851b268c586329731b9a213e20360d2ef0f108a (diff)
downloadexecline-052be74f98489c711ac4f8a5421db39304e39a3f.tar.gz
version: 2.9.9.1v2.9.9.1
Diffstat (limited to 'examples/etc/execline-shell')
-rwxr-xr-xexamples/etc/execline-shell10
1 files changed, 4 insertions, 6 deletions
diff --git a/examples/etc/execline-shell b/examples/etc/execline-shell
index ac8c141..4e81ac0 100755
--- a/examples/etc/execline-shell
+++ b/examples/etc/execline-shell
@@ -1,18 +1,16 @@
#!/bin/execlineb -S0
-backtick -n defaulthome
+backtick -nE defaulthome
{
if -nt
{
- backtick -n defaultuser { id -un }
- importas -u defaultuser defaultuser
- importas -D $defaultuser USER USER
+ backtick -nE defaultuser { id -un }
+ importas -SD $defaultuser USER
redirfd -w 2 /dev/null
homeof ${USER}
}
s6-echo /
}
-importas -u defaulthome defaulthome
-importas -D $defaulthome HOME HOME
+importas -SD $defaulthome HOME
tryexec { ${HOME}/.execline-shell $@ }
/bin/sh $@