Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
asdf
asdf
Commits
0468dba6
Commit
0468dba6
authored
Apr 03, 2017
by
Francois-Rene Rideau
Browse files
Merge branch 'normalize-system-command'
parents
91592aa5
47020a1b
Changes
1
Hide whitespace changes
Inline
Side-by-side
uiop/run-program.lisp
View file @
0468dba6
...
...
@@ -377,20 +377,10 @@ or whether it's already taken care of by the implementation's underlying run-pro
(
defun
%normalize-system-command
(
command
)
;; helper for %USE-SYSTEM
(
etypecase
command
(
string
(
os-cond
((
os-windows-p
)
#+
(
or
allegro
clisp
ecl
)
(
strcat
"cmd"
" /c "
command
)
#-
(
or
allegro
clisp
ecl
)
command
)
(
t
command
)))
(
string
command
)
(
list
(
escape-shell-command
(
os-cond
((
os-unix-p
)
(
cons
"exec"
command
))
((
os-windows-p
)
#+
(
or
allegro
clisp
ecl
sbcl
)
(
list*
"cmd"
"/c"
command
)
#-
(
or
allegro
clisp
ecl
sbcl
)
command
)
(
t
command
))))))
(
defun
%redirected-system-command
(
command
in
out
err
directory
)
;; helper for %USE-SYSTEM
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment