Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
I
inferior-shell
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
qitab
inferior-shell
Commits
10efffee
Commit
10efffee
authored
12 years ago
by
Francois-Rene Rideau
Browse files
Options
Downloads
Patches
Plain Diff
Improve error behavior.
Support clozure for mkdir and setenv (need to be moved away).
parent
d9856403
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
run.lisp
+1
-1
1 addition, 1 deletion
run.lisp
utilities.lisp
+6
-2
6 additions, 2 deletions
utilities.lisp
with
7 additions
and
3 deletions
run.lisp
+
1
−
1
View file @
10efffee
...
...
@@ -64,7 +64,7 @@
(
function
(
apply
'run-process-spec
(
funcall
host
spec
)
:host
nil
keys
))))
(
defun
run
(
cmd
&key
on-error
time
(
output
t
)
show
host
)
(
defun
run
(
cmd
&key
time
(
output
t
)
show
host
(
on-error
(
list
"Command ~S failed~@[ on ~A~]"
cmd
host
))
)
(
labels
((
process-time
()
(
if
time
(
time
(
process-command
))
(
process-command
)))
(
process-command
()
...
...
This diff is collapsed.
Click to expand it.
utilities.lisp
+
6
−
2
View file @
10efffee
...
...
@@ -5,12 +5,16 @@
;;--- TODO: move these to FARE-UTILS and/or XCVB-DRIVER ?
(
defun
make-directory
(
dir
&optional
(
mode
#o755
))
;; TODO: move to fare-utils or somewhere else
;; TODO: it's low-level. rename this mkdir or some such, and document use of native-namestring.
#+
clozure
(
ccl::%mkdir
dir
mode
)
#+
sbcl
(
sb-posix:mkdir
dir
mode
)
#-
sbcl
(
NIY
'make-directory
))
#-
(
or
clozure
sbcl
)
(
NIY
'make-directory
))
(
defun
setenv
(
var
val
&optional
(
overwritep
t
))
#+
clozure
(
ccl:setenv
var
val
overwritep
)
#+
sbcl
(
sb-posix:setenv
var
val
(
if
overwritep
1
0
))
#-
sbcl
(
NIY
'setenv
))
#-
(
or
clozure
sbcl
)
(
NIY
'setenv
))
(
defmacro
pipe
(
values
&rest
transformers
)
(
if
(
null
transformers
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment