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" &
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 "$(tempfile) " "$(dirname "$FILE")" "$(basename "$FILE")" \
>"$FILE. tar.gz"
FILE=
echo Hello world >"$FILE"
gzip --to-stdout "$FILE" >"$FILE.gz"
tar --create --gzip --directory=
file-roller --extract-here "$FILE.gz" &
file-roller --extract-here "$FILE.tar.gz" &