Path: csiph.com!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: "Carlos E. R." Newsgroups: comp.os.linux.misc Subject: Re: tar problem Date: Thu, 13 Jun 2024 20:00:16 +0200 Lines: 28 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Trace: individual.net 6jJ+PGts3OJpv7hm5YxrqQxkDzQrE6qXU0hVASLFiC38Ij2jEW Cancel-Lock: sha1:uce/3wHvofQWjIBLMGplqMrjxjU= sha256:G2wTrhd3qMKYfUbI5wRPMuedfh/Do7sEiq7K9bK19Co= User-Agent: Mozilla Thunderbird Content-Language: en-US In-Reply-To: Xref: csiph.com comp.os.linux.misc:56565 On 2024-06-12 21:16, Richard Kettlewell wrote: > Ralf Fassel writes: >> * db >> | ~/bin> tarx ../tarfiles/NumNotes >> | tar (child): ../tarfiles/NumNotes: Cannot open: No such file or directory >> ---- >> | ~/bin> ls ../tarfiles/Num* >> | ../tarfiles/NumNotes.tar.gz >>> >> | The last line proves that it's lying. >> >> Why do you expect that if you tell tar to use a file named 'NumNotes' >> that it should use a file named 'NumNotes.tar.gz' instead? > > The script they quoted does “tar -xf $1.tar.gz”, i.e. it adds .tar.gz. Thus it is not obeying the -x in bash. > > Presumably the script they are actually running is different. Yes. -- Cheers, Carlos E.R.