Skip to content
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

Exec reporting incorrect exit code #91

Closed
xvxx opened this issue May 12, 2019 · 2 comments
Closed

Exec reporting incorrect exit code #91

xvxx opened this issue May 12, 2019 · 2 comments

Comments

@xvxx
Copy link
Collaborator

xvxx commented May 12, 2019

Tested this on Mac and Linux, seems like the exit code is getting misreported:

$ cat report.ldpl
DATA:
code is number
PROCEDURE:
execute "sh bad.sh" and store exit code in code
display "exit code: " code crlf

$ cat bad.sh
#!/bin/sh
exit 1

$ ldpl report.ldpl
LDPL: Compiling...
* File(s) compiled successfully.
* Saved as report-bin

$ ./report-bin
exit code: 256

$ sh bad.sh
$ echo "exit code: $status"
exit code: 1
@Lartu
Copy link
Owner

Lartu commented May 13, 2019

Hmmm, that's weird. At the moment I'm very busy studying for a final, but once it's passed I'll check this out. Thank you for the report!

@Lartu
Copy link
Owner

Lartu commented May 16, 2019

Fixed in 6600458!

@Lartu Lartu closed this as completed May 16, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants