Project

General

Profile

Nxshlib » History » Version 1

Stefan Mark, 01/02/2021 06:02 PM

1 1 Stefan Mark
h1. Nxshlib
2
3
All function look at first in _$NX_CONFIG_HOME/session.rc_, then (if nothing found) in _/etc/nx/system.rc_. If @source@ is given, either only the _system.rc_ ("sys") or _session.rc_ ("usr") is tried.
4
5
<pre>getkey key [-d default] [-n var_name] [-N] [source]</pre>
6
7
Returns 0 if @key@ was found, 1 otherwise. Stores the value for @key@ into @$value@.
8
If @-d default@ was given, returns 0 even if @key@ was not found and stores value into @$value@.
9
If @-n var_name@ was gives, value is stored in @$var_name@ instead of @$value@.
10
If @-N@ was set, value is stored in @$key@ instead of @$value@.
11
12
<pre>getapp key [source]</pre>
13
14
> Note that getapp is a stub. Parameters like in getkey do not work and may break operation.
15
16
Returns 0 if @key@ was found, 1 otherwise. Stores the value for @keyApp_ into @$command@.
17
18
<pre>getkeyarray key [source]</pre>
19
20
> Note that getkeyarray will change: it shall return 0 and 1 like the others
21
> Note that getapp is a stub. Parameters like in getkeyarray do not work and may break operation.
22
23
If @key@ was found, interprets its value as an array (in shell notation) and stores its values in @$value@. The array is empty if @key@ is not found.
24
25
<pre>keyistrue key [source]</pre>
26
27
Returns 0 if @key@ was found and its value was true. 1 otherwise.