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

Backwards compatibility of old shell scripts #6

Open
AndrewFasano opened this issue Aug 19, 2024 · 0 comments
Open

Backwards compatibility of old shell scripts #6

AndrewFasano opened this issue Aug 19, 2024 · 0 comments

Comments

@AndrewFasano
Copy link

Our busybox shell is instrumented to help us analyze the behavior of shell scripts at runtime. To do this, we swap out an original /bin/sh -> orig busybox with /bin/sh -> our busybox.

This has caused issues in a few ways with backwards compatibility

  • A function with no body was previously valid, but is now a syntax error. Fixed by 6106cbd.
  • It was previously possible to declare a local variable outside of a function body, this is no longer valid.

There are more issues - we can track them in this issue. Ideally we'd either forward-port support for these "features" or find ways to detect when we can/can't safely use our shims.

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

1 participant