summaryrefslogtreecommitdiff
path: root/examples/etc/execline-shell
blob: abe5aa00806c2324ed2bbc72d7f29f1b2210f87d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/bin/execlineb -S0

` -n home
{
  && -nt
  {
    ` -n user { id -un }
    $ -u user user $ -D $user USER USER
    < -w 2 /dev/null ~ ${USER}
  }
  echo /
}
$ -u home home $ -D $home HOME HOME
tryexec { ${HOME}/.execline-shell $@ }
/bin/sh $@