(kill -1 $$)
From: Dan Jacobson (jidanni_at_jidanni.org)
Date: 11/29/04
- Next message: Saïd: "A graphical tool to create a launch scripts"
- Previous message: Stephen Riehm: "Re: Emulating cron (processing at certain time periods)"
- Next in thread: John DuBois: "Re: (kill -1 $$)"
- Reply: John DuBois: "Re: (kill -1 $$)"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Mon, 29 Nov 2004 08:31:34 +0800
Why does this script print 3? [bash]
echo 1 $$;(echo 2 $$; kill -1 $$; echo 3); echo 4
1 8360
2 8360
3
Hangup
I would have thought it would print 4, not 3.
Is the only way to stop the subshell "exit"?
- Next message: Saïd: "A graphical tool to create a launch scripts"
- Previous message: Stephen Riehm: "Re: Emulating cron (processing at certain time periods)"
- Next in thread: John DuBois: "Re: (kill -1 $$)"
- Reply: John DuBois: "Re: (kill -1 $$)"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]