Skip to content

Commit

Permalink
system: On Windows, run-application only accepts a string
Browse files Browse the repository at this point in the history
  • Loading branch information
cgay committed Jun 24, 2023
1 parent cf8cee9 commit e531cff
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -413,6 +413,9 @@ System library's operating-system module.
command as parsed by the shell. Example: ``"/bin/ls -l"`` or
``#["/bin/ls", "-l"]``

.. note:: On Windows this must be a :drm:`<string>`, not a sequence of
strings.

:parameter #key under-shell?: An instance of :drm:`<boolean>`. If true (the
default), use a shell to invoke the *command*. On Unix systems this is
equivalent to ``/bin/sh -c '...command...'``. On Windows the
Expand Down
2 changes: 1 addition & 1 deletion sources/system/x86-win32-operating-system.dylan
Original file line number Diff line number Diff line change
Expand Up @@ -614,7 +614,7 @@ define constant $null-device = "NUL:";
// Note: streams are always returned in the order stdin, stdout, stderr
// even though not all of them are always returned.
define function run-application
(command :: type-union(<string>, limited(<sequence>, of: <string>)),
(command :: <string>,
#key under-shell? = #f,
inherit-console? = #t,
activate? = #t,
Expand Down

0 comments on commit e531cff

Please sign in to comment.