Well, how about this, then? (I’ve taken the opportunity to add in some
quotation marks to make the script just slightly more robust!)
#!/bin/sh
FILE="$(tempfile)"
echo Hello world >"$FILE"
gzip --to-stdout "$FILE" >"$FILE.gz"
tar --create --gzip --directory="$(dirname "$FILE")" "$(basename "$FILE")" \
>"$FILE.tar.gz"
file-roller --extract-here "$FILE.gz" &
file-roller --extract-here "$FILE.tar.gz" &
** Attachment added: "Shell script to create .gz and .tar.gz archives, and try
to extract them with file-roller"
http://launchpadlibrarian.net/16072844/file-roller-.gz%26.tar.gz-test.sh
--
file-roller cannot decompress non-archive .gz
https://bugs.launchpad.net/bugs/248683
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs