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

lrztar shows spurious "illegal option" with long options #245

Open
paddylandau opened this issue Jul 7, 2023 · 4 comments
Open

lrztar shows spurious "illegal option" with long options #245

paddylandau opened this issue Jul 7, 2023 · 4 comments

Comments

@paddylandau
Copy link

When using a long option with lrztar, it shows a spurious error. Long options are nevertheless accepted.

Example:

$ lrztar --zpaq --outfile=example.tar.lrz example/
/usr/bin/lrztar: illegal option -- -
/usr/bin/lrztar: line 66: ((: v_?=1: syntax error: operand expected (error token is "=1")
/usr/bin/lrztar: illegal option -- -
/usr/bin/lrztar: line 66: ((: v_?=4: syntax error: operand expected (error token is "=4")
Warning, low memory for chosen compression settings
Compression Ratio: 1.904. Average Compression Speed:  1.400MB/s.
Total time: 00:00:04.96

Despite the error messages, the long options are accepted and processed correctly.

Version 0.651

@pete4abw
Copy link
Contributor

pete4abw commented Jul 7, 2023

Ditch the = sign. The try again. lrztar is very complex. You can and possibly should use tar directly, as in:
tar --use-compress-program | -I 'lrzip -options...' -cf outputfile.tar.lrz [directories or files to tar]. This wiki will help.

@paddylandau
Copy link
Author

@pete4abw — Thank you. Ditching the = sign made no difference. But using tar with --use-compress-program worked perfectly, thank you!

@pete4abw
Copy link
Contributor

@pete4abw — Thank you. Ditching the = sign made no difference. But using tar with --use-compress-program worked perfectly, thank you!

Been a while since I looked at lrztar. It only supports short options. The reason the long command worked as expected was the outfile command was passed to lrzip. I wrote a front-end script for lrzip and lrzip-next called lrzip-fe. It has most all commands available. You can check out the repo on github.

@paddylandau
Copy link
Author

Been a while since I looked at lrztar. It only supports short options.

Ah, I've make a note of that.

I wrote a front-end script for lrzip and lrzip-next called lrzip-fe. It has most all commands available. You can check out the repo on github.

Sorry, I'm not familiar with github. I tried to find both lrzip-next and lrzip-fe but found neither. It doesn't matter, though, because I'm happy with what I have now, thank you.

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