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

Tush truncates a byte in script at byte index 8192 #4

Open
GuillaumeHM opened this issue Aug 11, 2023 · 0 comments
Open

Tush truncates a byte in script at byte index 8192 #4

GuillaumeHM opened this issue Aug 11, 2023 · 0 comments

Comments

@GuillaumeHM
Copy link

Hello there,

First, thank you for this simple and effective tool.

I have a tush script which size is greater than 8192 (8209 bytes). When I run it, it shows differences between written and executed commands in its output:

-$ cmp --ignore-initial=1023 file_1 file_2
+$ cmp --ignore-initial=103 file_1 file_2

A byte is missing in executed command, so the command fails and leave me with a true-negative result. That byte is the 8193th...
So I guess a maximum string length or buffer size is reached. The strange thing is that next bytes are ok ! Only one is missing.
If I add bytes before in the script, the missing byte differ accordingly (always the 8193th misses).

I see only one workaround: split the script in two scripts. That makes quite a short script limit : 8192 bytes...

Running on Debian bullseye; getconf ARG_MAX returns 2Mo. Is that limit inside awk ?

I'm ready to help on that.

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