#!/bin/bash
ROOT=PROOF_ROOT
MODE=$(cat "$ROOT/mode")
export HOME="$ROOT/remote-account/$MODE
newline"
mkdir -p "$HOME"
export SHELL="$ROOT/bash"
if [[ "$MODE" == *shasum* ]]; then export PATH="$ROOT/shasum-bin"; fi
if [[ "$MODE" == *invalid* ]]; then export PATH="$ROOT/tamper-bin:$PATH"; fi
if [[ "$1" == '-l' ]]; then shift; fi
printf 'HOME contains newline: yes\nsha256sum: %s\nshasum: %s\n' "$(command -v sha256sum || echo absent)" "$(command -v shasum || echo absent)" > "$HOME/shell-tools.txt"
exec /bin/bash "$@"
