Comment 9 for bug 248683

Revision history for this message
JM Williams (jmdwilliams) wrote :

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" &