chiark
/
gitweb
/
~ian
/
hippotat.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
03e8653d0062786dc168d3e9787f3b78f53f76b7
[hippotat.git]
/
fake-userv
1
#!/bin/sh
2
set -ex
3
echo >&2 "$0: invoked as $0 $*"
4
exec 3<&0 4>&1 5>&2 >&2 </dev/null
5
printenv
6
exec xterm -T netns -e unshare -n -- sh -xc '
7
"$@" <&3 >&4 2>&5 &
8
sleep 0.1
9
env - bash -i
10
' x "$@"