Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: jobs -Z example?
- X-seq: zsh-users 13933
- From: Atom Smasher <atom@xxxxxxxxxxx>
- To: zsh-users@xxxxxxxxxx
- Subject: Re: jobs -Z example?
- Date: Mon, 16 Mar 2009 11:13:14 +1300 (NZDT)
- In-reply-to: <090315150857.ZM5564@xxxxxxxxxxxxxxxxxxxxxx>
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- Openpgp: id=0xB88D52E4D9F57808; algo=1 (RSA); size=4096; url=http://atom.smasher.org/pgp.txt
- References: <20090315182446.60806.qmail@xxxxxxxxxxx> <090315124749.ZM5277@xxxxxxxxxxxxxxxxxxxxxx> <20090315204950.89255.qmail@xxxxxxxxxxx> <090315140753.ZM5405@xxxxxxxxxxxxxxxxxxxxxx> <20090315214114.34032.qmail@xxxxxxxxxxx> <090315150857.ZM5564@xxxxxxxxxxxxxxxxxxxxxx>
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.
thanks...
--
...atom
________________________
http://atom.smasher.org/
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