Re: Zcode interpreter release

2005-08-24 Thread Joshua Juran
On Aug 24, 2005, at 7:42 PM, Andrew Rodland wrote: On Wednesday 24 August 2005 04:26 pm, Amir Karger wrote: Several people pointed out that I didn't perldoc -f system. Sorry! Btw, even after reading the docs, I still don't understand why Perl would pass a cd command to a piece of the shell tha

Re: Zcode interpreter release

2005-08-24 Thread Andrew Rodland
On Wednesday 24 August 2005 04:26 pm, Amir Karger wrote: > Several people pointed out that I didn't perldoc -f system. Sorry! > Btw, even after reading the docs, I still don't understand why Perl > would pass a cd command to a piece of the shell that can't understand > it. Granted, I shouldn't do

Re: Zcode interpreter release

2005-08-24 Thread Amir Karger
On 8/23/05, I wrote: > I adopted the Zcode interpreter that leo posted in February. > > The only bad news is there's something wrong with my make test. > I managed to narrow this down to a very > weird Perl behavior I don't understand at all: > > testportal:~>mkdir z > testportal:~>cd z > testpo

Re: Zcode interpreter release

2005-08-24 Thread wolverian
On Tue, Aug 23, 2005 at 05:09:26PM -0400, Amir Karger wrote: > testportal:~/z>perl -we 'system("cd y")' The right thing to do (tm) here is chdir("y"), but if 'cd' is just an example and not the actual command, the right thing is system LIST form: system command => @args; -- wolverian sign

Re: Zcode interpreter release

2005-08-24 Thread Anatoly Vorobey
Perl's systen() tries to execute an external command directly when doesn't find any any shell metacharacters in the command line. Otherwise, it defaults to the shell. -- avva "There's nothing simply good, nor ill alone" -- John Donne

Zcode interpreter release

2005-08-24 Thread Amir Karger
Hi! I adopted the Zcode interpreter that leo posted in February. Luckily, he did the hard parts. I added some opcodes, README/CHANGES/TODO files, and testing, and, finally, did my first Parrot checkin. How exciting! There's much much more to do - 41 more opcodes just for version 3 of the Z-machi