[Scilab-Dev] WSCI not defined in OS environment

Samuel Gougeon sgougeon at free.fr
Wed Oct 30 18:17:42 CET 2019


Hello,

I am wondering why, unlike SCI, SCIHOME, TMPDIR and home, WSCI is not 
defined in the calling OS environment:

--> getenv WSCI

getenv: Undefined environment variable WSCI.

--> getenv SCI
  ans  =
  C:/Applications/scilab/SCILAB~2.2


--> getenv SCIHOME
  ans  =
  C:\Users\I\AppData\Roaming\Scilab\SCILAB~2.2


--> getenv TMPDIR
  ans  =
  C:\Users\I\AppData\Local\Temp\SC6FE7~1


--> getenv home
  ans  =
  C:\Users\I

Hence, %TMPDIR%, .. %SCIHOME% can be used in commands sent to the OS 
through unix_*() or host() functions
(or $TMPDIR, .. $SCIHOME on Linux and MacOS), but not %WSCI% or $WSCI.
This looks a bit awkward, doesn't it?
WSCI could be defined as well on Linux and MacOS as a copy of SCI. It 
would not disturb.

Regards
Samuel


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.scilab.org/pipermail/dev/attachments/20191030/65a0c661/attachment.htm>


More information about the dev mailing list