On Oct 21, 2019, at 3:45 AM, jason-tuhs(a)shalott.net
wrote:
hashbrown/home/jason-112723: cat ~/cd.sh
#!/bin/sh
test -n "$1" && TARGET=$1 || TARGET=$HOME
( echo "call (int) chdir(\"$TARGET\")" ; echo detach ; echo quit ) |
gdb -q -p $PPID >/dev/null 2>&1 &
"With ptrace(2) all things are possible.”
I honestly don’t know whether to applaud or vomit.
Adam