--- /dev/null
+#!/bin/bash
+
+file="$(mktemp)"
+if [ -n "$file" ]; then
+ ( umask 077; cat > "$file"; echo "/bin/rm -f '$file'" >> "$file" )
+ exec </dev/tty /bin/bash --rcfile "$file"
+else
+# Fall back to the shell.
+ exec </dev/tty /bin/bash
+fi
+exit 111