Velocipede Rider
banner
ruari.velocipederider.com.ap.brid.gy
Velocipede Rider
@ruari.velocipederider.com.ap.brid.gy
International Penny Farthing Racer.

I commute via :unicycle:, 🛴, "halfbike" or :penny_farthing: because they are great fun!

I also like minimalist tech […]

🌉 bridged from https://velocipederider.com/@ruari on the fediverse by https://fed.brid.gy/
Permissions are actually not that hard, the find command can also read permissions, so it is just the same kind of trick again. Where would would get into trouble with this is other special file types (like sockets, FIFOs, block/char devices). At that stage… just use tar. 🤷
December 4, 2025 at 9:04 AM
1.5k now 😭
December 2, 2025 at 12:13 PM
@patigallardo.bsky.social I mean you are the presentation queen. I am just throwing ideas out there. 😆 But I think pulling up a slide or two with 1k+ examples just for creating a tar.gz would show what a mess legacy support can be.

And that is just tar. Just some little utility that few people […]
Original post on velocipederider.com
velocipederider.com
December 1, 2025 at 11:36 PM
@patigallardo.bsky.social One day someone will decide, "Hmm… I should just rewrite this in rust" (or whatever the current fad is at the time) and when these realise that they have to keep all those old scripts working, they will regret their life decisions.
December 1, 2025 at 11:33 PM
@patigallardo.bsky.social Actually I feel like there is something for you in this, in one of your presentations. As you know tar is super old and that is why it supports multiple styles of switches. It has probably been embedded in probably millions of shell scripts. Hence why all this works, it […]
Original post on velocipederider.com
velocipederider.com
December 1, 2025 at 11:31 PM
@patigallardo.bsky.social I just can't go down that route. It leads to madness. They will have to lock me up in a straight jacket.
December 1, 2025 at 11:26 PM
@patigallardo.bsky.social I'm even self limiting myself already. Like I decided that I would avoid stuff that invoked more tools, e.g. things like this that use the find command to make the file listing:

find folder | tar c --no-recursion -T- --gzip > archive.tar.gz

find folder | tar fc […]
Original post on velocipederider.com
velocipederider.com
December 1, 2025 at 11:19 PM
@patigallardo.bsky.social I know, there is something wrong with me. I litterally spent all evening on this and there is no end in sight.

Maybe, just maybe… tar provides too many ways to do things. 🤷
December 1, 2025 at 11:15 PM
This might have gotten out of hand now. I may need an intervention. I am over 1k examples now. There are more but I need to stop. 🤣

https://gist.github.com/ruario/ac0c6a15369853df2c698aa6fe595135
Commands that would make a gzip tar archive from the contents of folder using GNU tar
Commands that would make a gzip tar archive from the contents of folder using GNU tar - gist:ac0c6a15369853df2c698aa6fe595135
gist.github.com
December 1, 2025 at 11:08 PM
@patigallardo.bsky.social I laugh at myself from yesterday. 289. Ha… I'm well over 1k examples now

https://gist.github.com/ruario/ac0c6a15369853df2c698aa6fe595135

Don't worry, I will not read them to you… probably. 😆
Commands that would make a gzip tar archive from the contents of folder using GNU tar
Commands that would make a gzip tar archive from the contents of folder using GNU tar - gist:ac0c6a15369853df2c698aa6fe595135
gist.github.com
December 1, 2025 at 11:06 PM
December 1, 2025 at 8:18 AM
@patigallardo.bsky.social Some time this week? Is lunch good or after work? What day would suit you?

P.S. I will bring the list… just in case. 🤪
December 1, 2025 at 8:14 AM
@patigallardo.bsky.social 289. You know what would be FUN!? If I printed out the list and we met for a coffee some time and you drank coffee while I read you the list! 😍

No, but seriously we should meet for a coffee some time and I promise I will NOT read you the list. 😉
December 1, 2025 at 8:04 AM
@patigallardo.bsky.social I added 3 more in the time it took you to reply.
December 1, 2025 at 6:53 AM
@patigallardo.bsky.social Why are you awake anyway? It is super late. 000:1100 (encoded in base-three)
November 30, 2025 at 11:36 PM
@patigallardo.bsky.social Still mistakes aside people are all, "Oh tar is so hard" and yet the majority of what I banged out over the last hour were valid tar commands. I mean is it really that hard? The parser is so forgiving, it's almost more difficult NOT to write a valid tar command. That […]
Original post on velocipederider.com
velocipederider.com
November 30, 2025 at 11:27 PM
@patigallardo.bsky.social Exactly!

P.S. Don't tell anyone but about 4 of them were wrong. I corrected them and replaced them with working versions 🤫
November 30, 2025 at 11:22 PM
I even wrote a script now to help me verify that they all work as expected 😆

Yes, yes… I should go to bed

#!/bin/bash
while IFS= read -r line; do
rm -f archive.tar.gz
echo "Executing: $line"
eval "$line"
ls
tar tvvf archive.tar.gz
echo ""
done < tar_gzip_commands.txt
November 30, 2025 at 11:08 PM
I even wrote a script now to help me verify that they all work as expected 😆

Yes, yes… I should go to bed

#!/bin/bash
while IFS= read -r line; do
rm -f archive.tar.gz
echo "Executing: $line"
eval "$line"
ls
tar tvvf archive.tar.gz
echo ""
done < tar_gzip_commands.txt
November 30, 2025 at 10:59 PM