Skip to content

Version 1.0.3

Latest

Choose a tag to compare

@cosmos72 cosmos72 released this 28 Nov 11:41
· 5 commits to main since this release

New features:

  • add support for wide characters, such as Chinese-Japanese-Korean (CJK), emoji etc. - closes issue #89 - technically, they are "fullwidth codepoints"
  • add support for bracketed paste and enable it by default - closes issue #99
  • Add OpenBSD support - largely by @dragonmaus
  • Add NetBSD support
  • add shell builtin umask to display or set the file creation mask - by @xofyarg
  • add parameter (sh-login?) that returns #t if shell is a login shell
  • add macro (parameterize*)
  • add functions (linectx-history-filter-onsave) and (linectx-history-filter-onsave-set!) for choosing which history items are saved to disk at REPL exit
  • add functions (vlines-string=?) and (vlines-string-hash), together they allow using vlines objects as hash table keys
  • add functions for three-way comparison between objects, i.e. less-than, equal or greater-than in a single call: (boolean-compare) (char-compare) (fxcompare) (number-compare) (string-compare) (vlines-cell-count-compare) (vscreen-cell-count-compare)
  • add functions (string-replace-left) (string->utf8b-length)
  • add functions (string-quote?) (string-quote) and use them in table-writer to escape non-printable characters

Improvements:

  • at startup, automatically eval file ~/.config/schemesh/init.ss if exists - even if not starting a REPL
    at shutdown, automatically eval file ~/.config/schemesh/quit.ss if exists - even if not starting a REPL
    see #92
  • improve REPL initialization and shutdown order:
    file ~/.config/schemesh/repl_init.ss is now evaluated immediately before repl inner loop, after everything else is initialized
    file ~/.config/schemesh/repl_quit.ss is now evaluated immediately after repl inner loop, before everything else is shut down
    this allows using (repl-args-linectx) (repl-history) and all other repl-related functions from such files
  • several improvements to history handling
  • enable reproducible build on Chez Scheme > 10.4.1, see cisco/ChezScheme#585
  • update doc/schemesh_on_termux.md instructing to download latest Chez Scheme from github.com, because it adds several Android-related fixes compared to Chez Scheme 10.4.0
  • allow omitting argument initial-parser from all functions (sh-eval-...) and (sh-read-...) when it's the last argument
  • allow omitting argument job-or-id in most functions (sh-env...)
  • rename priority -> nice in type process-entry because that's what most people are familiar with

Bug fixes:

  • fix macOS compile errors
  • fix issue #90: shell redirection >&- did not close file descriptor
  • fix issue #95: pipeline inside `` or $[...] did not capture pipeline output
  • fix issue #102: (sh-pipe job1 job2 ...) no longer raises exception
  • fix issue #105: history navigation now skips history items equal to current input
  • fix visual glitch when redrawing a line that ends exactly at the terminal right edge
  • fix a race condition in (call-with-foreground-job)
  • fix a job control bug when starting again a sh-job object after it has finished
  • fix incorrect usage of (bytevector-truncate!) and (string-truncate!)
  • fix (file-stat) to correctly fill inode field. by @dragonmaus in #100
  • fix missing parameter in a call to (gbuffer-insert-at!). by @dragonmaus in #109
  • fix infinite recursion in (to-table) when called with 4 arguments
  • fix (span-sort-by!) and (subvector-sort-by!) to correctly detect and coalesce connected components i.e. sets of mutually comparable elements