Mail Archives: djgpp-workers/1996/03/12/11:50:38
[Inner quote from eliz AT is DOT elta DOT co DOT il]
>> 4) `system' ignores some commands that it considers `null'
>> commands. Some of them indeed are (like ``rem''), but others aren't.
>> For instance, ``cd something'' and ``set'' without an argument should not
>> be ignored, I think. Right now the code ignores both of these commands
>> with or without arguments. Any particular reason for that?
>
>Sounds like a "unix compatibility" to me.
I think this is because system is intended to spawn another shell
and any commands that only affect the state of the shell, like
cd and set will just update the state of the spawned shell, then
the shell exits, resulting in an effective ''nop''. I would suspect
that this behavior would be required by any standard that addresses
it.
--Charles
- Raw text -