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

Merge changes in to support parsing bash scripts #737

Open
wants to merge 44 commits into
base: future
Choose a base branch
from

Conversation

BolunThompson
Copy link
Contributor

Code written by @sethsabar. The tests pass with the changes from binpash/shasta#5 and binpash/libbash#1 (CI will fail until those are merged in).

Signed-off-by: Bolun Thompson <[email protected]>
Signed-off-by: Bolun Thompson <[email protected]>
Signed-off-by: Bolun Thompson <[email protected]>
The bash tests contain scripts which use UTF-8 only characters,
but, by default, Python throws an exception when writing non-ASCII
characters to a file.

Signed-off-by: Bolun Thompson <[email protected]>
Signed-off-by: Bolun Thompson <[email protected]>
Signed-off-by: Bolun Thompson <[email protected]>
Signed-off-by: Bolun Thompson <[email protected]>
Copy link

OS =
CPU =
Ram =
Hash = 360fc2e
Kernel=
||
|-|-|-|-|-|-|-|-|-|

Copy link

OS =
CPU =
Ram =
Hash = 7b3cb4a
Kernel=
||
|-|-|-|-|-|-|-|-|-|

Due to the prescence of a '*' character in the sed/grep regex string
which is correctly interpreted as a glob conservatively.
Copy link

OS =
CPU =
Ram =
Hash = e957f08
Kernel=
||
|-|-|-|-|-|-|-|-|-|

Copy link

OS:ubuntu-20.04
Thu Jan 23 02:18:43 UTC 2025
intro: 2/2 tests passed.
interface: 202/203 tests passed.
compiler: 100/100 tests passed.
test_histexp7.sub are not identical

Copy link

OS =
CPU =
Ram =
Hash = eedd28e
Kernel=
||
|-|-|-|-|-|-|-|-|-|

Copy link

OS:ubuntu-20.04
Thu Jan 23 03:36:37 UTC 2025
intro: 2/2 tests passed.
interface: 202/202 tests passed.
compiler: 100/100 tests passed.

@BolunThompson
Copy link
Contributor Author

The tests all pass, so this should be ready for review.

Copy link
Member

@angelhof angelhof left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great to me! Could we also add a sentence in README saying that if your script includes bash syntax you can use the beta --bash flag to support it? Also adding a few paragraphs in docs/bash.md to talk about the architecture of the solution?

Copy link

OS =
CPU =
Ram =
Hash = e097512
Kernel=
||
|-|-|-|-|-|-|-|-|-|

Copy link

OS =
CPU =
Ram =
Hash = e951405
Kernel=
||
|-|-|-|-|-|-|-|-|-|

Copy link

OS =
CPU =
Ram =
Hash = b3079df
Kernel=
||
|-|-|-|-|-|-|-|-|-|

Signed-off-by: Bolun Thompson <[email protected]>
Copy link

OS =
CPU =
Ram =
Hash = c6dbe32
Kernel=
||
|-|-|-|-|-|-|-|-|-|

@BolunThompson
Copy link
Contributor Author

I wrote some basic documentation — is this good or should I elaborate on some part?

Copy link

OS:ubuntu-20.04
Mon Jan 27 04:59:40 UTC 2025
intro: 2/2 tests passed.
interface: 202/202 tests passed.
compiler: 100/100 tests passed.

Copy link

OS:ubuntu-20.04
Mon Jan 27 05:02:46 UTC 2025
intro: 2/2 tests passed.
interface: 202/202 tests passed.
compiler: 100/100 tests passed.

Copy link

OS:ubuntu-20.04
Mon Jan 27 05:04:18 UTC 2025
intro: 2/2 tests passed.
interface: 202/202 tests passed.
compiler: 100/100 tests passed.

Copy link

OS:ubuntu-20.04
Mon Jan 27 05:07:15 UTC 2025
intro: 2/2 tests passed.
interface: 202/202 tests passed.
compiler: 100/100 tests passed.

Signed-off-by: Bolun Thompson <[email protected]>
Copy link

OS =
CPU =
Ram =
Hash = 16bf931
Kernel=
||
|-|-|-|-|-|-|-|-|-|

Copy link

OS:ubuntu-20.04
Mon Jan 27 05:57:38 UTC 2025
intro: 2/3 tests passed.
interface: 202/202 tests passed.
compiler: 100/100 tests passed.
hello-world-bash.sh are not identical

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

Successfully merging this pull request may close these issues.

3 participants