Duplicate -nw should not returned by sciargs()
Reported by Louis NADEAU
-- Bug description --
when calling scilab from the command line in linux using the -nw option, an additionnal "-nw" is added in the args.... when the args value are required, it can cause problem
-- Scilab error message --
-- How to reproduce the bug --
using the command :
scilab-5.3.0/bin/scilab -nw -f test.sce -args "1 2 3"
the file test.sce contains the following lines :
arg=sciargs();
disp(arg);
the scilab output is :
scilab-5.3.0
Consortium Scilab (DIGITEO)
Copyright (c) 1989-2010 (INRIA)
Copyright (c) 1989-2007 (ENPC)
___________________________________________
Initialisation :
Chargement de l'environnement de travail
!/home/cybernot/scilab-5.3.0/bin/scilab-bin -nw -f test.sce -args 1 2 3 -nw !
the last -nw should not be there