[Scilab-users] unix_w(WSCI+"\bin\scilex --help") returns nothing

Samuel Gougeon sgougeon at free.fr
Tue Oct 29 18:33:47 CET 2019


Hello,

I have just discovered that, since Scilab 6.0.0, at least for windows 
users (not tested on Linux), the scilex.exe scilab binary file can be 
run with new undocumented options.
Noticeably, the "--help" one, that shows a list. From a cmd.exe shell:

 >.\Scilab-6.0.2\bin\scilex --help
Usage: Scilab <options>
       -e Instruction   : execute the scilab instruction given in 
Instruction argument.
                          -e and -f arguments are mutually exclusive.
       -f File          : execute the scilab script given in File argument.
                          -e and -f arguments are mutually exclusive.
       -quit            : force scilab exit after execution of script 
from -e or -f argument.
                          this flag is ignored if it is not used with -e 
or -f argument.
       -l lang          : Change the language of scilab ( default : en_US ).
       -nw              : Enable console mode.
       -nwni            : Enable terminal mode.
       -ns              : Don't execute etc/scilab.start.
       --help           : Display this help.
       -scihome <dir>   : Force SCIHOME to <dir>.
Developer Trace arguments:
       --parse-trace    : Display bison state machine evolution.
       --AST-trace      : Display ASCII-art AST to be human readable.
       --pretty-print   : Display pretty-printed code, standard Scilab 
syntax.

Developer Timer arguments:
       --AST-timed      : Time each AST node.
       --timed          : Time global execution.

Developer Debug arguments:
       --no-exec        : Only do Lexing/parsing do not execute 
instructions.
       --context-dump   : Display context status.
       --exec-verbose   : Display command before running it.
       --timeout delay  : Kill the Scilab process after a delay.

However, if i try to run this command from Scilab through a unix_*() 
function, it  returns nothing.
Nothing in the Scilab session, nothing in the consolebox...:

--> unix_w(WSCI+"\bin\scilex --help")
--> [re,s,e] = unix_g(SCI+"\bin\scilex --help")
  e  =

  s  =
    0.

  re  =
     []

There is no space in my WSCI path.
This behavior looks like the bug 14143 
<http://bugzilla.scilab.org/show_bug.cgi?id=14143> reported for Linux, 
not confirmed for Windows, and fixed in Scilab 6.0.2.

Any confirmation or explanation would be welcome.
Regards
Samuel







-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.scilab.org/pipermail/users/attachments/20191029/ad0c3e9b/attachment.htm>


More information about the users mailing list