[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: os.execute returns munged exit status
- From: Asko Kauppi <asko.kauppi@...>
- Date: Fri, 15 Oct 2004 21:45:22 +0300
"This function is equivalent to the C function system. It passes
command to be executed by an operating system shell. It returns a
status code, which is system-dependent."
Returning 256 is quite okay imho, since regular programs would return
0..255. There is no "false" command, and I don't think there's a shell
15.10.2004 kello 21:27, Aaron Brown kirjoitti:
Instead of returning the shell's exit status, os.execute
returns that exit status multiplied by 256 (i.e., shifted
over one byte). I assume that's not intentional.