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

add help message #753

Open
wants to merge 3 commits into
base: develop
Choose a base branch
from
Open

Conversation

peccu
Copy link

@peccu peccu commented Dec 22, 2022

add commands for receiving a directory in /help message

add commands for receiving a directory in /help message
@nwtgck nwtgck self-requested a review December 24, 2022 18:37
@nwtgck nwtgck self-assigned this Dec 24, 2022
@nwtgck
Copy link
Owner

nwtgck commented Jan 21, 2023

Thanks. I have not known zipped data is unziped by tar xf -.
I'd like to find the tar specification.

edit: I found the description as follows in macOS man.

...
DESCRIPTION
     tar creates and manipulates streaming archive files.  This implementation can extract from tar, pax, cpio, zip, jar, ar, xar,
     rpm, 7-zip, and ISO 9660 cdrom images and can create tar, pax, cpio, ar, zip, 7-zip, and shar archives.
...

edit: tar in Ubuntu 20.04 does not support unzipping by tar.

 tar xf my.zip 
tar: This does not look like a tar archive
tar: Exiting with failure status due to previous errors

- add missing option for tar (`z`)
- change unzip command for zip from tar
@peccu
Copy link
Author

peccu commented Aug 17, 2023

Thank you for your review.

  • I updated the option for tar command. I missed the x option for it.
  • I changed the command from tar to unzip for zip version.
    • unzip in macOS and ubuntu 22.04 doesn't supports stdin, so I created temporary file.
    • from unzip manpage
    Archives read from standard input are not yet supported, except with funzip (and then only the first member of the archive can be extracted).
    
  • I tested both zip and tar version in macOS (Catalina, 10.15.7; sorry for old version) and Ubuntu 22.04 (in docker container with zip/unzip installed)

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.

2 participants