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
8ee27066
Commit
8ee27066
authored
Feb 25, 2014
by
Francois-Rene Rideau
Committed by
Robert P. Goldman
Feb 27, 2014
Browse files
Undo
824c0f0d
from Feb 22, and leave a comment why the thing is working.
parent
3248396a
Changes
1
Hide whitespace changes
Inline
Side-by-side
uiop/run-program.lisp
View file @
8ee27066
...
...
@@ -738,8 +738,6 @@ It returns a process-info plist with possible keys:
(
if
(
os-unix-p
)
(
cons
"exec"
command
)
command
)))))
(
defun
%redirected-system-command
(
command
in
out
err
directory
)
;; helper for %USE-SYSTEM
(
when
(
and
directory
(
not
(
os-unix-p
)))
(
error
"Can't change directory in run-program on non-Unix systems with system() backend"
))
(
flet
((
redirect
(
spec
operator
)
(
let
((
pathname
(
typecase
spec
...
...
@@ -760,7 +758,7 @@ It returns a process-info plist with possible keys:
(
reduce/strcat
(
append
before
(
redirect
in
" <"
)
(
redirect
out
" >"
)
(
redirect
err
" 2>"
)
(
when
(
and
directory
(
os-unix-p
))
(
when
(
and
directory
(
os-unix-p
))
;; NB: unless on Unix, %system uses with-current-directory
`
(
" ; cd "
,
(
escape-shell-token
(
native-namestring
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