delorie.com/archives/browse.cgi | search |
> From: Tim Van Holder <tim DOT van DOT holder AT pandora DOT be> > Date: 08 Jan 2003 11:47:36 +0100 > > Not sure what our bash does now; if it uses exec*(), it can pass image > name and argv0 separately to provide exact Unix-like behaviour. Maybe > system() could be changed accordingly as well, leaving only invocations > from command.com to get the 'full' path as argv0. I believe you meant `spawn*', not `exec*'. Since our `system' already uses `spawn*' where possible, fixing `spawn*' will fix `system' automatically. If `system' doesn't call `spawn*', it means the subprogram is invoked via the shell, in which case we don't have any control on argv[0].
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |