Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

exec'ing $0 in traps



When sending SIGHUP to this script:

#!/bin/zsh

echo started
trap 'echo trapped; exec "$0"' 1

echo $$ > /tmp/blafasel

while read line; do
  echo line $line
done


restarting works exactly one time and then no more. With
FreeBSD's native /bin/sh or even the lousy /bin/bash it
works as expected.

What am I doing wrong?

	-Andre



Messages sorted by: Reverse Date, Date, Thread, Author