in reply to Re^2: quoted execution not working
in thread quoted execution not working

Good catch! You are correct. My bad. Instead of

die "fork returned $pid";
I should have invoked
die $!;
as I have in code that I have written in the past where I have done forking. Too much C-code lately the if-tree is a C-ism. As in
pid = fork(); switch (pid){ -1: perror("Fork failed"); exit(-1); 0: /* Child */ break; default: /* parent */ break; }
anyway, good catch.

All all this code is off the top of my head.