[TUHS] What was your "Aha, Unix!" moment?

Adam Thornton athornton at gmail.com
Tue Oct 22 15:19:39 AEST 2019



> On Oct 21, 2019, at 3:45 AM, jason-tuhs at 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



More information about the TUHS mailing list