Changeset 35172 in project


Ignore:
Timestamp:
02/20/18 06:56:30 (7 months ago)
Author:
kon
Message:

rel 1.2.0

File:
1 edited

Legend:

Unmodified
Added
Removed
  • wiki/eggref/4/posix-utils

    r35166 r35172  
    2323Platform dependent EOL character sequence {{string}}.
    2424
     25=== environment-string
     26
     27<procedure>(environment-string CELL) -> string</procedure>
     28
     29Returns {{"VAR=VAL"}}, where {{VAR}} is {{(car CELL)}} & {{VAL}} is {{(cdr
     30CELL)}}.
     31
    2532=== environment-variables->environment-list
    2633
     
    3037{{EVS}}.
    3138
     39=== qs*
     40
     41<procedure>(qs* STR [DELIM #\"]) -> string</procedure>
     42
     43Result like {{(conc DELIM STR DELIM)}}.
     44
     45=== qs-quote
     46
     47<procedure>(qs-quote OBJ) -> string</procedure>
     48
     49Returns {{"'OBJ'"}}.
     50
     51=== qs-string
     52
     53<procedure>(qs-string OBJ) -> string</procedure>
     54
     55Returns {{""OBJ""}}.
     56
     57=== qs-argument
     58
     59<procedure>(qs-argument OBJ [LITERAL? [DELIM #\"]]) -> string</procedure>
     60
     61Returns a ''quoted'', ''quasiquoted'', or ''evaluated'' shell argument string.
     62
     63An {{OBJ}} is
     64
     65: '* (quote . *) ; ''quoted'' {{*}} unless {{LITERAL?}}
     66: `* (quasiquote . *) ; ''quasiquoted'' {{*}} unless {{LITERAL?}}
     67: * ; ''evaluated''
     68
     69A ''shell'' quote is
     70
     71; ''quoted'' : {{' string '}
     72; ''quasiquoted'' : {{` ,* (unquote *) | ,@* (unquote-splicing *) | * (quote) `}}
     73; ''evaluated'' : {{" string "}}
     74
     75A ''quasiquoted'' {{OBJ}} is
     76
     77; ,* (unquote *) : ''evaluated'' *
     78; ,@* (unquote-splicing *) : ''evaluated'' * #\space ...
     79; * (quote) : ''quoted'' *
     80
     81=== get-commandline-result
     82
     83<procedure>(get-commandline-result CMND LINE) -> string</procedure>
     84
     85Returns the result of {{''shell'' CMND LINE}}.
     86
     87{{CMND}} is a {{string}}.
     88
     89{{LINE}} is a {{string}}.
     90
     91=== get-command-result
     92
     93<procedure>(get-command-result CMND ARG ...) -> string</procedure>
     94
     95Returns the result of {{''shell'' CMND ARG ...}}.
     96
     97{{CMND}} is a {{string}}.
     98
     99{{ARG ...}} are {{string ...}} & processed by {{qs-argument}}.
     100
     101=== get-echo-result
     102
     103<procedure>(get-echo-result EXP) -> string</procedure>
     104
     105Returns the result of {{echo "EXP"}}, w/o the ''echo'' eol.
     106
     107{{EXP}} is a {{string}}.
     108
    32109=== environment-variable-bound?
    33110
    34 <procedure>(environment-variable-bound? VARNAM) -> (or boolean string)</procedure>
    35 
    36 Does the environment variable {{VARNAM}} exist with a non-null value?
    37 
    38 {{VARNAM}} is a {{string}}.
     111<procedure>(environment-variable-bound? NAM) -> (or boolean string)</procedure>
     112
     113Does the environment variable {{NAM}} exist with a non-null value?
     114
     115{{NAM}} is a {{string}}.
    39116
    40117<enscript language=scheme>
     
    48125=== environment-variable-true?
    49126
    50 <procedure>(environment-variable-true? VARNAM [TRUE-LIST '("y" "yes" "1")]) -> boolean</procedure>
    51 
    52 Is the environment variable {{VARNAM}} lowercase value in {{TRUE-LIST}}?
    53 
    54 {{VARNAM}} is a {{string}}. {{TRUE-LIST}} is a {{(list-of string)}} recognized
     127<procedure>(environment-variable-true? NAM [TRUE-LIST '("y" "yes" "1")]) -> boolean</procedure>
     128
     129Is the environment variable {{NAM}} lowercase value in {{TRUE-LIST}}?
     130
     131{{NAM}} is a {{string}}. {{TRUE-LIST}} is a {{(list-of string)}} recognized
    55132as true values.
    56133
     
    65142=== register-environment-variable-feature!
    66143
    67 <procedure>(register-environment-variable-feature! VARNAM) -> (or boolean symbol)</procedure>
    68 
    69 Registers an existing {{VARNAM}} value as a {{feature}}. Returns {{#f}} or the
     144<procedure>(register-environment-variable-feature! NAM) -> (or boolean symbol)</procedure>
     145
     146Registers an existing {{NAM}} value as a {{feature}}. Returns {{#f}} or the
    70147registered feature {{symbol}}.
    71148
    72 {{VARNAM}} is a {{string}}.
     149{{NAM}} is a {{string}}.
    73150
    74151=== get-shell-variable
    75152
    76 <procedure>(get-shell-variable VARNAM) -> (or boolean string)</procedure>
    77 
    78 Returns the shell variable {{VARNAM}} value.
    79 
    80 {{VARNAM}} is a {{string}}.
     153<procedure>(get-shell-variable NAM) -> string</procedure>
     154
     155Returns the shell variable {{NAM}} value.
     156
     157{{NAM}} is a {{string}}.
    81158
    82159=== shell-variable-bound?
    83160
    84 <procedure>(shell-variable-bound? VARNAM) -> (or boolean string)</procedure>
    85 
    86 Does the shell variable {{VARNAM}} exist with a non-null value?
    87 
    88 {{VARNAM}} is a {{string}}.
     161<procedure>(shell-variable-bound? NAM) -> (or boolean string)</procedure>
     162
     163Does the shell variable {{NAM}} have a non-null value?
     164
     165{{NAM}} is a {{string}}.
    89166
    90167=== shell-variable-true?
    91168
    92 <procedure>(shell-variable-true? VARNAM [TRUE-LIST '("y" "yes" "1")]) -> boolean</procedure>
    93 
    94 Is the shell variable {{VARNAM}} lowercase value in {{TRUE-LIST}}?
    95 
    96 {{VARNAM}} is a {{string}}. {{TRUE-LIST}} is a {{(list-of string)}} recognized
     169<procedure>(shell-variable-true? NAM [TRUE-LIST '("y" "yes" "1")]) -> boolean</procedure>
     170
     171Is the shell variable {{NAM}} lowercase value in {{TRUE-LIST}}?
     172
     173{{NAM}} is a {{string}}. {{TRUE-LIST}} is a {{(list-of string)}} recognized
    97174as true values.
    98175
    99176=== register-shell-variable-feature!
    100177
    101 <procedure>(register-shell-variable-feature! VARNAM) -> (or boolean symbol)</procedure>
    102 
    103 Registers an existing {{VARNAM}} value as a {{feature}}. Returns {{#f}} or the
     178<procedure>(register-shell-variable-feature! NAM) -> (or boolean symbol)</procedure>
     179
     180Registers an existing {{NAM}} value as a {{feature}}. Returns {{#f}} or the
    104181registered feature {{symbol}}.
    105182
    106 {{VARNAM}} is a {{string}}.
     183{{NAM}} is a {{string}}.
    107184
    108185<enscript language=scheme>
Note: See TracChangeset for help on using the changeset viewer.