newLISP Fan Club

Forum => newLISP and the O.S. => Topic started by: Cyril on January 19, 2008, 03:06:31 AM

Title: Run process with spaces in executable file name
Post by: Cyril on January 19, 2008, 03:06:31 AM
I feel myself dumb today: how to run process (by 'process' function) if name of executable file contains spaces?  (Very common case if it resides under "Program Files"). I have tried quoting -- no luck. Quoting for '!' and 'exec' works (although in a non-trivial way), but for 'process' it fails.



In fact I am trying to emulate 'fork' by calling 'process' with '(main-args)' joined back. Maybe there is a better way to do this?
Title:
Post by: Lutz on January 19, 2008, 05:44:16 AM
Currently spaces are not supported in 'process' for Win32. On UNIX spaces are supported for arguments, using single quotes '.



On Win32 use the short 8.3 filename, you can find it out doing a: dir /X in the Windows command shell.



Full support for spaces in commands and arguments is on my To-Do list and will appear in a future version.



Lutz



ps: Peter (pjot) has a 'winfork' on his site: http://www.turtle.dds.nl/newlisp/index.html
Title:
Post by: Lutz on January 20, 2008, 03:42:59 PM
... now supported on 9.2.17 (tomorrow, Jan 21st)



Lutz