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
ba8308da
Commit
ba8308da
authored
Oct 23, 2013
by
Francois-Rene Rideau
Browse files
Try to avoid extraneous spaces in redirected command lines
for the sake of Windows' CMD.EXE.
parent
be8dbc58
Changes
1
Hide whitespace changes
Inline
Side-by-side
uiop/run-program.lisp
View file @
ba8308da
...
...
@@ -736,10 +736,10 @@ It returns a process-info plist with possible keys:
(
string
(
pathname
spec
))
(
pathname
spec
)
((
eql
:output
)
(
assert
(
equal
operator
"2>"
))
(
assert
(
equal
operator
"
2>"
))
(
return-from
redirect
'
(
" 2>&1"
))))))
(
when
pathname
(
list
" "
operator
" "
(
list
operator
" "
(
escape-shell-token
(
native-namestring
pathname
)))))))
(
multiple-value-bind
(
before
after
)
(
let
((
normalized
(
%normalize-system-command
command
)))
...
...
@@ -748,7 +748,7 @@ It returns a process-info plist with possible keys:
(
values
(
list
normalized
)
())))
(
reduce/strcat
(
append
before
(
redirect
in
"<"
)
(
redirect
out
">"
)
(
redirect
err
"2>"
)
before
(
redirect
in
"<"
)
(
redirect
out
">"
)
(
redirect
err
"
2>"
)
(
when
(
and
directory
(
os-unix-p
))
`
(
"cd "
(
escape-shell-token
directory
)
" ; "
))
after
)))))
...
...
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