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
a24d3d7d
Commit
a24d3d7d
authored
11 years ago
by
Francois-Rene Rideau
Browse files
Options
Downloads
Patches
Plain Diff
Require ASDF or UIOP 3.0.3 for its new RUN-PROGRAM
parent
694579f0
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
inferior-shell.asd
+3
-2
3 additions, 2 deletions
inferior-shell.asd
pkgdcl.lisp
+2
-4
2 additions, 4 deletions
pkgdcl.lisp
utilities.lisp
+0
-16
0 additions, 16 deletions
utilities.lisp
with
5 additions
and
22 deletions
inferior-shell.asd
+
3
−
2
View file @
a24d3d7d
;;; -*- Lisp -*-
;;; -*- Lisp -*-
(
defsystem
:inferior-shell
(
defsystem
:inferior-shell
:defsystem-depends-on
(
:asdf
#-
asdf3
:asdf-driver
)
:defsystem-depends-on
(
:asdf
#-
asdf3
:uiop
)
:depends-on
(
#-
asdf3
:asdf-driver
#+
sbcl
:sb-posix
:depends-on
((
:version
#+
asdf3
:asdf
#-
asdf3
:uiop
"3.0.3"
)
#+
sbcl
:sb-posix
:alexandria
:optima
:alexandria
:optima
:fare-utils
:fare-quasiquote-extras
:fare-mop
)
:fare-utils
:fare-quasiquote-extras
:fare-mop
)
:description
"spawn local or remote processes and shell pipes"
:description
"spawn local or remote processes and shell pipes"
...
...
This diff is collapsed.
Click to expand it.
pkgdcl.lisp
+
2
−
4
View file @
a24d3d7d
#+
xcvb
(
module
())
#+
xcvb
(
module
())
(
in-package
:cl
)
(
uiop/package:define-package
:inferior-shell
(
:mix
:fare-utils
:uiop
:alexandria
)
(
asdf/package:define-package
:inferior-shell
(
:mix
:fare-utils
:alexandria
:asdf/driver
)
(
:use
:cl
:optima
:named-readtables
:fare-mop
)
(
:use
:cl
:optima
:named-readtables
:fare-mop
)
(
:export
(
:export
#:run
#:run/s
#:run/ss
#:run/lines
#:run
#:run/s
#:run/ss
#:run/lines
...
...
This diff is collapsed.
Click to expand it.
utilities.lisp
+
0
−
16
View file @
a24d3d7d
...
@@ -40,22 +40,6 @@
...
@@ -40,22 +40,6 @@
(
with-input-from-string
(
stream
string
)
(
with-input-from-string
(
stream
string
)
(
do-stream-lines
fun
stream
)))
(
do-stream-lines
fun
stream
)))
(
defvar
*cr*
(
coerce
#(
#\cr
)
'string
))
(
defvar
*lf*
(
coerce
#(
#\newline
)
'string
))
(
defvar
*crlf*
(
coerce
#(
#\cr
#\newline
)
'string
))
(
defun
stripln
(
x
)
(
check-type
x
string
)
(
let*
((
len
(
length
x
))
(
endlfp
(
equal
(
last-char
x
)
#\linefeed
))
(
endcrlfp
(
and
endlfp
(
<=
2
len
)
(
eql
(
char
x
(
-
len
2
))
#\return
)))
(
endcrp
(
equal
(
last-char
x
)
#\return
)))
(
cond
(
endlfp
(
values
(
subseq
x
0
(
-
len
1
))
*lf*
))
(
endcrp
(
values
(
subseq
x
0
(
-
len
1
))
*cr*
))
(
endcrlfp
(
values
(
subseq
x
0
(
-
len
2
))
*crlf*
))
(
t
(
values
x
nil
)))))
(
defun
read-line*
(
&optional
(
stream
*standard-input*
)
eof-error-p
eof-value
recursive-p
cr
lf
)
(
defun
read-line*
(
&optional
(
stream
*standard-input*
)
eof-error-p
eof-value
recursive-p
cr
lf
)
"Similar to READ-LINE, this function also returns as additional values the state about
"Similar to READ-LINE, this function also returns as additional values the state about
whether CR or LF were read. CR, LF and CR+LF are accepted only.
whether CR or LF were read. CR, LF and CR+LF are accepted only.
...
...
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