Deutsch English Français Italiano |
<v4cm5d$1o2u1$1@dont-email.me> View for Bookmarking (what is this?) Look up another Usenet article |
Path: ...!news.nobody.at!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail From: marrgol <marrgol@address.invalid> Newsgroups: comp.os.linux.misc Subject: Re: tar problem Date: Wed, 12 Jun 2024 19:33:33 +0200 Organization: A noiseless patient Spider Lines: 32 Message-ID: <v4cm5d$1o2u1$1@dont-email.me> References: <v44em0$3i8j8$1@dont-email.me> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Injection-Date: Wed, 12 Jun 2024 19:33:33 +0200 (CEST) Injection-Info: dont-email.me; posting-host="e2906f4fce852d63a1b8303a50015de6"; logging-data="1838017"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19z8PxhBt+x2vX2djdStBjT" User-Agent: Mozilla/5.0 (rv:102.0) Gecko/20100101, Betterbird/102 Cancel-Lock: sha1:qQ0TzpNpBYi8ZS7EAHRK2t+Lgy4= Content-Language: en-GB, pl In-Reply-To: <v44em0$3i8j8$1@dont-email.me> Bytes: 2066 On 2024-06-09 at 16:36 db wrote: > I like to make life easy so I wrote a one-line script > for extracting the contents of a tar file. I copied it > into the /bin directory so I can run it from anywhere. > I tried it out in a test directory where I had it, and > where there is a small test tar file. Here is the dialogue > from running it, using both the local script and the one > in /bin: > > ~/tartest> ls > tarx test.tar.gz > ~/tartest> cat tarx > tar -xf $1.tar.gz > ~/tartest> cat ~/bin/tarx > tar -xf $1.tar.gz > ~/tartest> ./tarx test > ~/tartest> ls > tarx test test.tar.gz > ~/tartest> del -r test > ~/tartest> tarx test > tar (child): test: Cannot open: No such file or directory > tar (child): Error is not recoverable: exiting now > tar: Child returned status 2 > tar: Error is not recoverable: exiting now > > Why doesn't it work from bin/ ? Does it work if you specify the full path of the executable in ~/bin/, i.e. '/home/db/bin/tarx test'? If it does, what do 'type -a tarx' and 'hash -t tarx' commands return?