[plan-build] Add limited readline functionality to `attach()` function.
This change enables minimal command history and file tab complete for
the `attach` (i.e. "debugger") helper. It's pretty sweet.
@@ -1192,7 +1192,8 @@ attach() {
set +e
# Loop through input, REPL-style until either `"exit"` or `"quit"` is found
while [[ "$cmd" != "exit" && "$cmd" != "quit" ]]; do
- read -p "[$replno] ${pkg_name}($fname)> " cmd
+ read -e -r -p "[$replno] ${pkg_name}($fname)> " cmd
+ history -s $cmd
case "$cmd" in
vars) (set -o posix; set);;
whereami*|\@*)
