become overhaul.
[profile.git] / opt / bin / became
diff --git a/opt/bin/became b/opt/bin/became
new file mode 100755 (executable)
index 0000000..245f75b
--- /dev/null
@@ -0,0 +1,11 @@
+#!/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