elibs / ebash

enhanced bash
Apache License 2.0
16 stars 2 forks source link

Archive module should auto detect format #20

Open marshall-mcmullen opened 3 years ago

marshall-mcmullen commented 3 years ago

If you have a custom archive suffix (e.g. foo.upr) then you are forced to pass around --type=tgz so that ebash knows the type to list it, extract it, etc. We should enhance archive_type to look for well known types, and if none are found, fall back to using file to figure out what the type is.

ericpe commented 3 years ago

better yet, export EBASH_ARCHIVE_SYN="abc,efg,upr:tgz;xyz:tb2"

marshall-mcmullen commented 3 years ago

Oh that is a nice idea @ericpe