Skip to content

xz piped into xzcat#44

Open
alokmenghrajani wants to merge 1 commit into
wader:mainfrom
alokmenghrajani:xz
Open

xz piped into xzcat#44
alokmenghrajani wants to merge 1 commit into
wader:mainfrom
alokmenghrajani:xz

Conversation

@alokmenghrajani

Copy link
Copy Markdown
Collaborator

No description provided.

@jwilk jwilk left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Could be shortened to xz < file.txt | xzcat.

Kudos to @jwilk for shortening this by one byte.
@wader

wader commented Jun 12, 2023

Copy link
Copy Markdown
Owner

Not sure what to do about some of the pipe-variants that are compress | uncompress etc hmm

@alokmenghrajani

Copy link
Copy Markdown
Collaborator Author

I would nuke the pipe section. My $0.02.

@wader

wader commented Jun 12, 2023

Copy link
Copy Markdown
Owner

Yeap maybe good to just keep it to single programs

@jwilk agree?

@wader

wader commented Jun 12, 2023

Copy link
Copy Markdown
Owner

@alokmenghrajani sent an invite so you can help out if you want

@jwilk

jwilk commented Jun 12, 2023

Copy link
Copy Markdown
Collaborator

Yeah, the compress | decompress scheme (and more generally foo --encode | foo --decode) is a bit… bland?

I'd reluctantly allow gzip (ubiquitous!) and xz (very short!), but probably not other compressors. Maybe. Dunno.

maybe good to just keep it to single programs

Is echo ',p' | ed -s file.txt one program or two? Because I'd hate to lose it.

Maybe discourage using the same (or nearly-same) program twice instead?

@alokmenghrajani

alokmenghrajani commented Jun 12, 2023

Copy link
Copy Markdown
Collaborator Author

@alokmenghrajani sent an invite so you can help out if you want

Thank you, I'm honored.

One way to keep things fun would be to define a specific operating system. E.g. a very specific Docker image, such as docker run --rm -it ubuntu@sha256:2cde79b4627d38d1448fc264f93e465f18b653bc9a62ee8ec85d99d4e8f39d4c /bin/bash. The number of boring cases will then perhaps be limited.

note: we shouldn't pick this specific Docker image since it's a little too bare (no gcc, no curl, etc.).

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