[Bugzilla] [Bug 10945] Samuel GOUGEON has changed bug_status, resolution
bugzilla.admin at scilab.org
bugzilla.admin at scilab.org
Tue Mar 20 23:25:07 CET 2018
http://bugzilla.scilab.org/show_bug.cgi?id=10945
--------- Bug Summary -----------
Two consecutive inputs fail to work
---------- Changed by ------------
sgougeon at free.fr
---------- What changed ----------
bug_status, resolution
Samuel GOUGEON <sgougeon at free.fr> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution|--- |WORKSFORME
--- Comment #9 from Samuel GOUGEON <sgougeon at free.fr> ---
(In reply to ruben from comment #7)
> In the sci file:
> function report=test()
>
> userAnsw = input( "Please confirm by typing ""y""" ,"s")
> if userAnsw=="y"
> if input( 'If you are sure, type ""y"" again ',"s")=="y"
> report = "Yeah !";
> end
> end
> endfunction
>
> Bash file to run:
> #!/bin/bash
> scilab -nwni -e "exec preamble.sce;getd('.');test();"
The zipped test.sh you have posted is not this one. It contains
"scilab -nwni -e "exec preamble.sce; test();"
So?
With "exec preamble.sce;getd('.');test();", you will run twice getd(".");
By the way, if there are other functions present where the preamble is located,
they will be loaded as well.
So, the context is unclear.
Why don't you put getd('.'); directly in the -e string, instead of performing preamble.sce that contains only this?
Or even exec test.sci; test()
?
When running a Scilab 6.0.1 session from the Windows shell with
>c:\Scilab\bin\scilab -nwni -e "exec test.sci; test()"
test() and its result behave as expected.
Please reopen and explain clearly what you were exactly doing, what was is the current directory when you did getd("."), whether you did twice
getd(".") or not, etc.
As Sylvestre has already noted, the description of the report is presently very confused, complicated, and ambiguous.
--
You are receiving this mail because:
You are watching all bug changes.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.scilab.org/pipermail/bugzilla/attachments/20180320/6e315dd2/attachment.htm>
More information about the Bugzilla
mailing list