Sujet : Re: tar problem
De : invalid (at) *nospam* invalid.invalid (Richard Kettlewell)
Groupes : comp.os.linux.miscDate : 13. Jun 2024, 08:33:55
Autres entêtes
Organisation : terraraq NNTP server
Message-ID : <wwvv82d8ffg.fsf@LkoBDZeT.terraraq.uk>
References : 1 2 3 4 5 6 7 8 9 10 11 12 13 14
User-Agent : Gnus/5.13 (Gnus v5.13) Emacs/28.2 (gnu/linux)
Robert Heller <
heller@deepsoft.com> writes:
Richard Kettlewell <invalid@invalid.invalid> wrote:
The script they quoted does "tar -xf $1.tar.gz", i.e. it adds .tar.gz.
Presumably the script they are actually running is different.
>
Wondering: is there a space after "$1" (eg between that and the
dot). Also: is the script file a purely ASCII text file or does it
contain UTF-8 characters -- is the dot really an ASCII period
character or something else that "looks" like a period. Bash won't
like it if it is not an ASCII period and won't like white space where
it does not belong.
I think you need to review the first post in the thread. They already
have a working script, all they need to do is run it instead of the
broken one; that is what they are having troble with. Knowing the
difference between the two scripts won’t help at all.
Note the lack of "#!/bin/bash" at the start of the file could also be
causing problems.
Again I think you need to review the first post in the thread. This
would not cause the problem that’s actually on display.
-- https://www.greenend.org.uk/rjk/