aboutsummaryrefslogtreecommitdiffstats
path: root/examples
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
parentf851b268c586329731b9a213e20360d2ef0f108a (diff)
downloadexecline-052be74f98489c711ac4f8a5421db39304e39a3f.tar.gz
version: 2.9.9.1v2.9.9.1
Diffstat (limited to 'examples')
-rwxr-xr-xexamples/etc/execline-shell10
-rwxr-xr-xexamples/etc/execline-startup4
2 files changed, 6 insertions, 8 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 $@
diff --git a/examples/etc/execline-startup b/examples/etc/execline-startup
index 4afc557..ec64c83 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
+ importas -Si HOME
+ importas -Si LOGNAME
}
/bin/export USER ${LOGNAME}
/bin/s6-envdir /etc/env-startup