#!/bin/execlineb -S0

backtick -n defaulthome
{
  if -nt
  {
    backtick -n defaultuser { id -un }
    importas -u defaultuser defaultuser
    importas -D $defaultuser USER USER
    redirfd -w 2 /dev/null
    homeof ${USER}
  }
  s6-echo /
}
importas -u defaulthome defaulthome
importas -D $defaulthome HOME HOME
tryexec { ${HOME}/.execline-shell $@ }
/bin/sh $@
