Skip to content

Commit 059ca9f

Browse files
committed
release version 0.9.1
1 parent d7b73f1 commit 059ca9f

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

92 files changed

+129
-105
lines changed

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,8 @@ MKDIR_P = mkdir -p
4949
######################################################################################
5050
# no user-serviceable parts below this line
5151
######################################################################################
52-
LIBSCHEMESH_SO=libschemesh_0.9.0.so
53-
LIBSCHEMESH_C_SO=libschemesh_c_0.9.0.so
52+
LIBSCHEMESH_SO=libschemesh_0.9.1.so
53+
LIBSCHEMESH_C_SO=libschemesh_c_0.9.1.so
5454

5555
SRCS=containers/containers.c eval.c posix/posix.c shell/shell.c
5656
OBJS=containers.o eval.o posix.o shell.o

README.md

Lines changed: 20 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,20 @@ The analogous job control mechanisms from Scheme syntax are:
9393

9494
Some more advanced Scheme functions:
9595
* `(sh-run/string job-object)` start a job in foreground, wait until job finishes, return its output as a Scheme string
96-
* `(sh-start/fd-stdout job-object)` start a job in background, return a file descriptor fixnum for reading its standard output - for example with `(open-fd-input-port fd)`
96+
* `(sh-start/ports job-object)` start a job in background, return a list containing three binary ports:<br/>
97+
the first one for writing to job's standard input<br/>for example with `(put-bytevector port bytevector)`,<br/>
98+
the second one for reading from job's standard output<br/>for example with `(get-bytevector-some port bytevector)`,<br/>
99+
the third one for reading from job's standard error<br/>for example with `(get-bytevector-some port bytevector)`.<br/>
100+
Ports must be closed with `(close-port)` when no longer needed.
101+
* `(sh-start/fd-stdout job-object)` start a job in background, return a file descriptor fixnum<br/>
102+
for reading job's standard output - for example with `(open-fd-input-port fd)` or `(fd-read-some fd bytevector)`
103+
File descriptor must be closed with `(fd-close)` when no longer needed.
104+
* `(sh-start/fds job-object)` start a job in background, return a list containing three file descriptor fixnums:<br/>
105+
the first one for writing to job's standard input<br/>for example with `(open-fd-output-port fd)` or `(fd-write fd bytevector)`,<br/>
106+
the second one for reading from job's standard output<br/>for example with `(open-fd-input-port fd)` or `(fd-read fd bytevector)`,<br/>
107+
the third one for reading from job's standard error<br/>for example with `(open-fd-input-port fd)` or `(fd-read fd bytevector)`.<br/>
108+
File descriptors must be closed with `(fd-close)` when no longer needed.
109+
97110

98111

99112
### Subshells and command substitution
@@ -427,7 +440,7 @@ and inspect the Scheme source or objects generated by shell syntax:
427440
(begin
428441
(#3%$invoke-library
429442
'(schemesh shell job)
430-
'(0 9 0)
443+
'(0 9 1)
431444
'#{job c35q9golxfpwdr5y269nhygk1-54})
432445
(sh-and
433446
(sh-cmd* "make" 1 '> "log")
@@ -479,7 +492,7 @@ sudo apt update
479492
sudo apt install build-essential chezscheme-dev liblz4-dev libncurses-dev git uuid-dev zlib1g-dev
480493
git clone https://github.com/cosmos72/schemesh
481494
cd schemesh
482-
git checkout -f v0.9.0
495+
git checkout -f v0.9.1
483496
make -j
484497

485498
# try schemesh without installing it
@@ -503,7 +516,7 @@ then replace the command `make -j` with `make -j CC='gcc -fno-lto'`
503516
sudo dnf install gcc make chez-scheme-devel lz4-devel ncurses-devel git libuuid-devel zlib-devel
504517
git clone https://github.com/cosmos72/schemesh
505518
cd schemesh
506-
git checkout -f v0.9.0
519+
git checkout -f v0.9.1
507520
make -j
508521

509522
# try schemesh without installing it
@@ -523,7 +536,7 @@ by default, WSL installs [Ubuntu Linux](#ubuntu-linux)
523536
pkg install chez-scheme gcc git gmake # must be executed as root
524537
git clone https://github.com/cosmos72/schemesh
525538
cd schemesh
526-
git checkout -f v0.9.0
539+
git checkout -f v0.9.1
527540
gmake -j
528541

529542
# try schemesh without installing it
@@ -541,7 +554,7 @@ gmake install # must be executed as root
541554
sudo xcode-select --install # only needed if you don't already have XCode Command Line Tools
542555
brew install chezscheme lz4
543556
git clone https://github.com/cosmos72/schemesh
544-
git checkout -f v0.9.0 # version v0.8.3 does not support Mac OS X
557+
git checkout -f v0.9.1 # version v0.8.3 does not support Mac OS X
545558
cd schemesh
546559
make -j
547560

@@ -566,7 +579,7 @@ nix-build && ./result/bin/schemesh
566579
let
567580
schemesh = pkgs.fetchgit {
568581
url = "https://github.com/cosmos72/schemesh.git";
569-
rev = "refs/tags/v0.9.0"; # or: "refs/heads/main"
582+
rev = "refs/tags/v0.9.1"; # or: "refs/heads/main"
570583
sha256 = ""; # insert sha256 when ready
571584
};
572585
{

bootstrap/arrow.ss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
#!r6rs
99

10-
(library (schemesh bootstrap arrow (0 9 0))
10+
(library (schemesh bootstrap arrow (0 9 1))
1111
(export expand==>)
1212
(import
1313
(rnrs)

bootstrap/bootstrap.ss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
#!r6rs
99

10-
(library (schemesh bootstrap (0 9 0))
10+
(library (schemesh bootstrap (0 9 1))
1111
(export
1212
;; bootstrap.ss
1313

bootstrap/chez-compat.rkt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
;;
1313
;; then it can be imported from Racket #!r6rs files with the usual (import (chez compat))
1414
;;
15-
(library (chez compat (0 9 0))
15+
(library (chez compat (0 9 1))
1616
(export append!
1717
check-interrupts current-time
1818
chez:car chez:cdr chez:cons chez:list chez:pair?

bootstrap/functions.ss

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313

1414
#!r6rs
1515

16-
(library (schemesh bootstrap functions (0 9 0))
16+
(library (schemesh bootstrap functions (0 9 1))
1717
(export
1818
check-interrupts fx<=?* nop parameter-swapper
1919
generate-pretty-temporaries generate-pretty-temporary gensym-pretty
@@ -235,14 +235,14 @@
235235

236236
;; return Schemesh version string
237237
(define sh-version
238-
(let ((ret (string->immutable-string "Schemesh Version 0.9.0")))
238+
(let ((ret (string->immutable-string "Schemesh Version 0.9.1")))
239239
(lambda ()
240240
ret)))
241241

242242

243243
;; return three values: schemesh version MAJOR, MINOR and PATCH fixnums
244244
(define (sh-version-number)
245-
(values 0 9 0))
245+
(values 0 9 1))
246246

247247
) ; close library
248248

containers/bitmap.ss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
;;;;;;;;; define Scheme type "bitmap", a fixed size bit vector ;;;;;;;;;;;;;
1212
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
1313

14-
(library (schemesh containers bitmap (0 9 0))
14+
(library (schemesh containers bitmap (0 9 1))
1515
(export
1616
bitmap make-bitmap bitmap? bitmap-length bitmap-ref bitmap-set! bitmap-last-zero)
1717
(import

containers/bytespan.ss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
;;;;;;;;; define Scheme type "bytespan", a resizeable bytevector ;;;;;;;;;;;;;
1212
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
1313

14-
(library (schemesh containers bytespan (0 9 0))
14+
(library (schemesh containers bytespan (0 9 1))
1515
(export
1616
list->bytespan bytevector->bytespan bytevector->bytespan* make-bytespan
1717
bytespan->bytevector bytespan->bytevector*! bytespan->bytevector0

containers/bytevector.ss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
;;; (at your option) any later version.
77

88

9-
(library (schemesh containers bytevector (0 9 0))
9+
(library (schemesh containers bytevector (0 9 1))
1010
(export
1111
in-bytevector list->bytevector subbytevector
1212

containers/charspan.ss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
;;;;;;;;;;; define Scheme type "charspan", a resizeable string ;;;;;;;;;;;;;;;
1212
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
1313

14-
(library (schemesh containers charspan (0 9 0))
14+
(library (schemesh containers charspan (0 9 1))
1515
(export
1616
list->charspan string->charspan string->charspan* make-charspan
1717
charspan->string charspan->string*!

0 commit comments

Comments
 (0)