-
Notifications
You must be signed in to change notification settings - Fork 34
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Yori script execution #70
Comments
I think the bug here was the handling of |
Thanks a lot!!!
Is there a way to terminate script execution without "GOTO :EOF" statement? Simply just want to make EXIT raising errorlevel, just as CMD does: I can create another issue for this or we may continue here |
I tried the script you mention and I pushed two commits related to this, but I'm not really happy about these behaviors; it seems like there are three different concepts and I'm using two commands to express them:
Previously, Yori had the So what I'd really like is to split Anyway, commit 2f8ca8d allows |
Recompiled yori with current source... It is more simple to see with that code:
Yes, it exists the script but only after all commands are executed. For the rest... I think in a nutshell script is nothing more than subroutine for the shell, or maybe just routine, that may have subroutine and So within subroutine: Another variant is new
Not so bad at first glance, but you're right... there are many variants, it needs more time to decide which is better |
I pushed commit 731b036 to ensure that exit from partway through a script terminates script parsing. What's frustrating about returning from the global scope in a script is it's just so common for CMD scripts to expect their effects to be public, which is why the global scope doesn't (by default) isolate state. This can be done with |
Thanks for quick responses! P.S. As for me right now feature described in (#58) is most desireble. |
Hi!
There is something with "yori.exe" arguments interpretation... The thing is that there is four parameters on "yori.exe" and when I am trying to combine it something weird going on:
than nothing happens... it simply starts new yori executable
that yori start the script and "-nouser" will be the %1% parameter in this script during execution.
I guess this is due to that code:
yori/sh/main.c
Lines 387 to 405 in 24024b6
The text was updated successfully, but these errors were encountered: