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

Re: jobs -Z example?

On Sun, 15 Mar 2009, Bart Schaefer wrote:

Oh, there's probably a race condition then.  Try this instead:

 perl -e '$0 = "Test hiding command"; sleep 10;' & sleep 2; ps $!

The extra sleep in the parent shell will give perl a bit longer to get going.

that works.

Your evidence so far indicates that assigning to $0 in perl is able to change the command, so there must be something perl is doing that "jobs -Z" is not doing.

seems like it.



 762A 3B98 A3C3 96C9 C6B7 582A B88D 52E4 D9F5 7808

	"Now about Lankhmar. She's been invaded, her walls
	 breached everywhere and desperate fighting is going
	 on in the streets, by a fierce host which out-numbers
	 Lankhmar's inhabitants by fifty to one -- and equipped
	 with all modern weapons. Yet you can save the city."

	"How?" demanded Fafhrd.

	 Ningauble shrugged. "You're a hero. You should know."
		-- Fritz Leiber, "The Swords of Lankhmar"

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