X-Git-Url: https://git.rrq.au/?a=blobdiff_plain;ds=inline;f=lsp-misc%2Fmisc.lsp;h=f60d0d3ea86fa7fe8ae2c5820bb426a89f958986;hb=121167c737403e2f49231fd5704aae86850b5b38;hp=cf92d9cb2b110469ed163a381daef0d2d375c1cb;hpb=1898ef96b70cb93c53a84e6a7536d0a3bceb35d6;p=rrq%2Flsp-utils.git diff --git a/lsp-misc/misc.lsp b/lsp-misc/misc.lsp index cf92d9c..f60d0d3 100644 --- a/lsp-misc/misc.lsp +++ b/lsp-misc/misc.lsp @@ -3,7 +3,7 @@ (define (die N) (when (args) (write-line 2 (join (map string (args)) " "))) - (exit N)) + (and N (exit N))) (global 'die) ;; Print binary byte as octal or as ASCII character [32-126] @@ -12,5 +12,5 @@ ;; Print string as binary octals (define (octals-string S) - (join (map octal-byte (unpack (dup "b" (length S)) S))) "") + (join (map octal-byte (unpack (dup "b" (length S)) S)))) (global 'octals-string 'octal-byte)