Rocksolid Light

News from da outaworlds

mail  files  register  groups  login

Message-ID:  

You will pass away very quickly.


comp / comp.os.linux.misc / Re: Path and/or alias finding

SubjectAuthor
* tar problemdb
+* Re: tar problemdb
|`* Re: tar problemLew Pitcher
| `* Path and/or alias findingCarlos E.R.
|  +* Re: Path and/or alias findingRobert Heller
|  |+* Re: Path and/or alias findingLew Pitcher
|  ||+- Re: Path and/or alias findingCarlos E.R.
|  ||+- Re: Path and/or alias findingLew Pitcher
|  ||+- Re: Path and/or alias findingLawrence D'Oliveiro
|  ||`- Re: Path and/or alias findingLawrence D'Oliveiro
|  |+- Re: Path and/or alias findingCarlos E.R.
|  |+- Re: Path and/or alias findingLawrence D'Oliveiro
|  |`- Re: Path and/or alias findingLawrence D'Oliveiro
|  `* Re: Path and/or alias findingJohn-Paul Stewart
|   `* Re: Path and/or alias findingCarlos E.R.
|    +- Re: Path and/or alias findingLawrence D'Oliveiro
|    `- Re: Path and/or alias findingLawrence D'Oliveiro
+* Re: tar problemRichard Kettlewell
|`* Re: tar problemRobert Heller
| +* Re: tar problemdb
| |`* Re: tar problemLew Pitcher
| | `* Re: tar problemCarlos E. R.
| |  `* Re: tar problemLew Pitcher
| |   `* Re: tar problemCarlos E. R.
| |    `* Re: tar problemdb
| |     `* Re: tar problemRich
| |      +* Re: tar problemdb
| |      |`* Re: tar problemRalf Fassel
| |      | `* Re: tar problemRichard Kettlewell
| |      |  +- Re: tar problemCarlos E. R.
| |      |  +- Re: tar problemRalf Fassel
| |      |  `* Re: tar problemRobert Heller
| |      |   `- Re: tar problemRichard Kettlewell
| |      `- Re: tar problemLew Pitcher
| `- Re: tar problemcandycanearter07
+* Re: tar problemMarc Olschok
|`- Re: tar problemRobert Heller
+- Re: tar problemmarrgol
+* Re: tar problemLew Pitcher
|+- Re: tar problemdb
|`- Re: tar problemCarlos E. R.
+- Re: tar problemLew Pitcher
`- Re: tar problemMarco Moock

Pages:12
Subject: Re: tar problem
From: Ralf Fassel
Newsgroups: comp.os.linux.misc
Date: Thu, 13 Jun 2024 08:50 UTC
References: 1 2 3 4 5 6 7 8 9 10 11 12 13
Path: eternal-september.org!news.eternal-september.org!feeder3.eternal-september.org!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From: ralfixx@gmx.de (Ralf Fassel)
Newsgroups: comp.os.linux.misc
Subject: Re: tar problem
Date: Thu, 13 Jun 2024 10:50:45 +0200
Lines: 17
Message-ID: <ygaikydql96.fsf@akutech.de>
References: <v44em0$3i8j8$1@dont-email.me>
<wwvo78auj35.fsf@LkoBDZeT.terraraq.uk>
<F_OdnckCE_opY_j7nZ2dnZfqn_udnZ2d@giganews.com>
<v46oc6$dn9v$1@dont-email.me> <v46ruq$etuo$1@dont-email.me>
<lcp7qiF3bnqU2@mid.individual.net> <v47v3e$etuo$2@dont-email.me>
<lcpeisF3bnrU1@mid.individual.net> <v492gj$vdjv$1@dont-email.me>
<v4a08d$1573l$1@dont-email.me> <v4c4sj$1ld54$2@dont-email.me>
<ygar0d2qf6z.fsf@akutech.de> <wwvikyeq8eh.fsf@LkoBDZeT.terraraq.uk>
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
X-Trace: individual.net UGWhNHePraePeSIA/KbhsAQi7AYcSjGDfM6fEdx99V/xAHmKI=
Cancel-Lock: sha1:d81zirjCn8O3NVJebAV7eoCvb84= sha1:+/ewuLppx70uxLuT2CpTv8F7rYo= sha256:ZjPJfKWtvLmTMFNH1mOH9AQgaxKJQNFerbgD8uzyN6I=
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux)
View all headers

* Richard Kettlewell <invalid@invalid.invalid>
| Ralf Fassel <ralfixx@gmx.de> writes:
| > 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.

Ah, sorry for the noise. Hadn't spotted that post.

| Presumably the script they are actually running is different.

Obviously it is, considering the tar message.
Should be trivial to 'type tarx' to find out instead of accusing tar of
lying (but creating conspiracy contexts where none exist seems en vogue
these days... :-()

R'

Subject: Re: tar problem
From: Carlos E. R.
Newsgroups: comp.os.linux.misc
Date: Thu, 13 Jun 2024 18:00 UTC
References: 1 2 3 4 5 6 7 8 9 10 11 12 13
Path: eternal-september.org!news.eternal-september.org!feeder3.eternal-september.org!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From: robin_listas@es.invalid (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: <ld0qdgF6hcmU1@mid.individual.net>
References: <v44em0$3i8j8$1@dont-email.me>
<wwvo78auj35.fsf@LkoBDZeT.terraraq.uk>
<F_OdnckCE_opY_j7nZ2dnZfqn_udnZ2d@giganews.com> <v46oc6$dn9v$1@dont-email.me>
<v46ruq$etuo$1@dont-email.me> <lcp7qiF3bnqU2@mid.individual.net>
<v47v3e$etuo$2@dont-email.me> <lcpeisF3bnrU1@mid.individual.net>
<v492gj$vdjv$1@dont-email.me> <v4a08d$1573l$1@dont-email.me>
<v4c4sj$1ld54$2@dont-email.me> <ygar0d2qf6z.fsf@akutech.de>
<wwvikyeq8eh.fsf@LkoBDZeT.terraraq.uk>
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: <wwvikyeq8eh.fsf@LkoBDZeT.terraraq.uk>
View all headers

On 2024-06-12 21:16, Richard Kettlewell wrote:
> Ralf Fassel <ralfixx@gmx.de> writes:
>> * db <dieterhansbritz@gmail.com>
>> | ~/bin> tarx ../tarfiles/NumNotes
>> | tar (child): ../tarfiles/NumNotes: Cannot open: No such file or directory
>> --<snip-snip>--
>> | ~/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.

Subject: Re: tar problem
From: db
Newsgroups: comp.os.linux.misc
Organization: A noiseless patient Spider
Date: Fri, 14 Jun 2024 14:35 UTC
References: 1
Path: eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: dieterhansbritz@gmail.com (db)
Newsgroups: comp.os.linux.misc
Subject: Re: tar problem
Date: Fri, 14 Jun 2024 14:35:02 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 25
Message-ID: <v4hkem$2u4k0$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: 8bit
Injection-Date: Fri, 14 Jun 2024 16:35:02 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="b1c9aa02c91168da0c646a5f0ed1a0d3";
logging-data="3084928"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+FlHcp5jZT2ton9mKYcqy8fwNMwSW0bCY="
User-Agent: Pan/0.149 (Bellevue; 4c157ba)
Cancel-Lock: sha1:QEf/tsguOxZInOVmmAebwDJkwYg=
View all headers

On Sun, 9 Jun 2024 14:36:49 -0000 (UTC), 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/ ?

Red face time.
I just found out that I have an alias called tarx in
my .bashrc. In fact, someone asked me about this and
I answered in the negative, without checking. My apologies!

--
db

Subject: Re: tar problem
From: Lew Pitcher
Newsgroups: comp.os.linux.misc
Organization: A noiseless patient Spider
Date: Fri, 14 Jun 2024 14:38 UTC
References: 1 2
Path: eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: lew.pitcher@digitalfreehold.ca (Lew Pitcher)
Newsgroups: comp.os.linux.misc
Subject: Re: tar problem
Date: Fri, 14 Jun 2024 14:38:38 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 22
Message-ID: <v4hkle$2ta7j$1@dont-email.me>
References: <v44em0$3i8j8$1@dont-email.me> <v4hkem$2u4k0$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Date: Fri, 14 Jun 2024 16:38:38 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="a8a93098d8f8fb160cfc3f5a78b3faa2";
logging-data="3057907"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19dqaX7u/pzjkRnDzaLmgvCBEZItxzGNOA="
User-Agent: Pan/0.139 (Sexual Chocolate; GIT bf56508
git://git.gnome.org/pan2)
Cancel-Lock: sha1:nJ3iYKAQSE3dNxiRBZ2Uwevn84c=
View all headers

On Fri, 14 Jun 2024 14:35:02 +0000, db wrote:

> On Sun, 9 Jun 2024 14:36:49 -0000 (UTC), 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.
[snip]
>> Why doesn't it work from bin/ ?
>
> Red face time.
> I just found out that I have an alias called tarx in
> my .bashrc. In fact, someone asked me about this and
> I answered in the negative, without checking. My apologies!

Apology accepted. :-)

Glad you found (and presumably fixed) your problem.

--
Lew Pitcher
"In Skills We Trust"

Subject: Path and/or alias finding
From: Carlos E.R.
Newsgroups: comp.os.linux.misc
Date: Fri, 14 Jun 2024 17:42 UTC
References: 1 2 3
Path: eternal-september.org!news.eternal-september.org!feeder3.eternal-september.org!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From: robin_listas@es.invalid (Carlos E.R.)
Newsgroups: comp.os.linux.misc
Subject: Path and/or alias finding
Date: Fri, 14 Jun 2024 19:42:40 +0200
Lines: 42
Message-ID: <g1cujkxqt4.ln2@Telcontar.valinor>
References: <v44em0$3i8j8$1@dont-email.me> <v4hkem$2u4k0$1@dont-email.me>
<v4hkle$2ta7j$1@dont-email.me>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
X-Trace: individual.net kXTgRenSbg4S5zJasJ2HPAY+jx0iFcrz3NYAqUumpsqHrBv5Gk
X-Orig-Path: Telcontar.valinor!not-for-mail
Cancel-Lock: sha1:kanES0Th/Y/4ARS/QjoDaeGa0oY= sha256:60mZWub6cLXLqkGjcqgJg1tTRvBUdSJCreCOyxusQ0A=
User-Agent: Mozilla Thunderbird
Content-Language: es-ES, en-CA
In-Reply-To: <v4hkle$2ta7j$1@dont-email.me>
View all headers

On 2024-06-14 16:38, Lew Pitcher wrote:
> On Fri, 14 Jun 2024 14:35:02 +0000, db wrote:
>
>> On Sun, 9 Jun 2024 14:36:49 -0000 (UTC), 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.
> [snip]
>>> Why doesn't it work from bin/ ?
>>
>> Red face time.
>> I just found out that I have an alias called tarx in
>> my .bashrc. In fact, someone asked me about this and
>> I answered in the negative, without checking. My apologies!
>
> Apology accepted. :-)
>
> Glad you found (and presumably fixed) your problem.

What command would show what exact incantation is used? Ie, what
path/binary, or what alias?

which tarx?

For instance:

cer@Telcontar:~> which l
which: no l in
(/home/cer/bin:/usr/local/bin:/usr/bin:/bin:/opt/kde3/bin:/usr/lib/mit/bin:/usr/lib/mit/sbin:/usr/sbin:/usr/sbin)
cer@Telcontar:~>

But it is an alias in my system

--
Cheers, Carlos.

Subject: Re: Path and/or alias finding
From: Robert Heller
Newsgroups: comp.os.linux.misc
Organization: Deepwoods Software
Date: Fri, 14 Jun 2024 18:50 UTC
References: 1 2 3
Path: eternal-september.org!news.eternal-september.org!feeder3.eternal-september.org!border-1.nntp.ord.giganews.com!nntp.giganews.com!Xl.tags.giganews.com!local-2.nntp.ord.giganews.com!news.giganews.com.POSTED!not-for-mail
NNTP-Posting-Date: Fri, 14 Jun 2024 18:50:02 +0000
MIME-Version: 1.0
From: heller@deepsoft.com (Robert Heller)
Organization: Deepwoods Software
X-Newsreader: TkNews 3.0 (1.2.17)
Subject: Re: Path and/or alias finding
In-Reply-To: <g1cujkxqt4.ln2@Telcontar.valinor>
References: <v44em0$3i8j8$1@dont-email.me> <v4hkem$2u4k0$1@dont-email.me>?
<v4hkle$2ta7j$1@dont-email.me> <g1cujkxqt4.ln2@Telcontar.valinor>
Newsgroups: comp.os.linux.misc
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain;
charset="us-ascii"
Originator: heller@sharky4.deepsoft.com
Message-ID: <m1qdnct0DMZHDfH7nZ2dnZfqn_idnZ2d@giganews.com>
Date: Fri, 14 Jun 2024 18:50:02 +0000
Lines: 57
X-Usenet-Provider: http://www.giganews.com
X-Trace: sv3-03uCe6o3fr+8gBGIePk/elXpUBOVNBr7OuAF/nLLbMVGpYzSNpbOnafC/LXoLjAmxFWqQQ4RvIfzyCP!2gbwxhrH2drHplKNzpGCGc8JFD2Q9jLWVTXmMemfZKWDBZWaDfUqXZN2xiLp59D5K2Tgehh3wVME!Y6Y=
X-Complaints-To: abuse@giganews.com
X-DMCA-Notifications: http://www.giganews.com/info/dmca.html
X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers
X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly
X-Postfilter: 1.3.40
View all headers

At Fri, 14 Jun 2024 19:42:40 +0200 "Carlos E.R." <robin_listas@es.invalid> wrote:

>
> On 2024-06-14 16:38, Lew Pitcher wrote:
> > On Fri, 14 Jun 2024 14:35:02 +0000, db wrote:
> >
> >> On Sun, 9 Jun 2024 14:36:49 -0000 (UTC), 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.
> > [snip]
> >>> Why doesn't it work from bin/ ?
> >>
> >> Red face time.
> >> I just found out that I have an alias called tarx in
> >> my .bashrc. In fact, someone asked me about this and
> >> I answered in the negative, without checking. My apologies!
> >
> > Apology accepted. :-)
> >
> > Glad you found (and presumably fixed) your problem.
>
>
> What command would show what exact incantation is used? Ie, what
> path/binary, or what alias?
>
> which tarx?
>
>
> For instance:
>
> cer@Telcontar:~> which l
> which: no l in
> (/home/cer/bin:/usr/local/bin:/usr/bin:/bin:/opt/kde3/bin:/usr/lib/mit/bin:/usr/lib/mit/sbin:/usr/sbin:/usr/sbin)
> cer@Telcontar:~>
>
>
> But it is an alias in my system

This depends on the shell...

marchhare% which dir
dir: aliased to ls -F -C
marchhare% echo $SHELL
/bin/tcsh

>
>
>

--
Robert Heller -- Cell: 413-658-7953 GV: 978-633-5364
Deepwoods Software -- Custom Software Services
http://www.deepsoft.com/ -- Linux Administration Services
heller@deepsoft.com -- Webhosting Services

Subject: Re: Path and/or alias finding
From: John-Paul Stewart
Newsgroups: comp.os.linux.misc
Date: Fri, 14 Jun 2024 19:30 UTC
References: 1 2 3 4
Path: eternal-september.org!news.eternal-september.org!feeder3.eternal-september.org!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From: jpstewart@personalprojects.net (John-Paul Stewart)
Newsgroups: comp.os.linux.misc
Subject: Re: Path and/or alias finding
Date: Fri, 14 Jun 2024 15:30:35 -0400
Lines: 13
Message-ID: <ld3k2rFihpjU1@mid.individual.net>
References: <v44em0$3i8j8$1@dont-email.me> <v4hkem$2u4k0$1@dont-email.me>
<v4hkle$2ta7j$1@dont-email.me> <g1cujkxqt4.ln2@Telcontar.valinor>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 7bit
X-Trace: individual.net TmXh7VQHLVU3CrlATayS1Qer32K2vD59rooPqhbBf1o7+iX4eT
Cancel-Lock: sha1:FrkkjwFAzsZ7uX7mo5ljsVFXGtM= sha256:YqC1g0iSZvbt+09KS+slpvPwLF8YGWToKBWsmLcSZg0=
User-Agent: Mozilla Thunderbird
Content-Language: en-CA
In-Reply-To: <g1cujkxqt4.ln2@Telcontar.valinor>
View all headers

On 2024-06-14 1:42 p.m., Carlos E.R. wrote:
>
> What command would show what exact incantation is used? Ie, what
> path/binary, or what alias?
>
> which tarx?

If you're using Bash as your shell, the 'type' builtin command will tell
you. E.g.,

$ type ls
ls is aliased to `ls --color=auto'

Subject: Re: Path and/or alias finding
From: Carlos E.R.
Newsgroups: comp.os.linux.misc
Date: Fri, 14 Jun 2024 19:59 UTC
References: 1 2 3 4 5
Path: eternal-september.org!news.eternal-september.org!feeder3.eternal-september.org!news.swapon.de!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From: robin_listas@es.invalid (Carlos E.R.)
Newsgroups: comp.os.linux.misc
Subject: Re: Path and/or alias finding
Date: Fri, 14 Jun 2024 21:59:19 +0200
Lines: 35
Message-ID: <n1kujkxtrb.ln2@Telcontar.valinor>
References: <v44em0$3i8j8$1@dont-email.me> <v4hkem$2u4k0$1@dont-email.me>
<v4hkle$2ta7j$1@dont-email.me> <g1cujkxqt4.ln2@Telcontar.valinor>
<m1qdnct0DMZHDfH7nZ2dnZfqn_idnZ2d@giganews.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
X-Trace: individual.net rIBp8MRwDn3jYuo2iQGXGg+e2dORvSuzqJOZQezkpYTw47SJDa
X-Orig-Path: Telcontar.valinor!not-for-mail
Cancel-Lock: sha1:sRWawX22ao81PSnTJlZe5AcmgO8= sha256:CkxlEbDsQY4PBi0IYLX1gcrR9OZkfT+nIiq2H5UJvZg=
User-Agent: Mozilla Thunderbird
Content-Language: es-ES, en-CA
In-Reply-To: <m1qdnct0DMZHDfH7nZ2dnZfqn_idnZ2d@giganews.com>
View all headers

On 2024-06-14 20:50, Robert Heller wrote:
> At Fri, 14 Jun 2024 19:42:40 +0200 "Carlos E.R." <robin_listas@es.invalid> wrote:

>> What command would show what exact incantation is used? Ie, what
>> path/binary, or what alias?
>>
>> which tarx?
>>
>>
>> For instance:
>>
>> cer@Telcontar:~> which l
>> which: no l in
>> (/home/cer/bin:/usr/local/bin:/usr/bin:/bin:/opt/kde3/bin:/usr/lib/mit/bin:/usr/lib/mit/sbin:/usr/sbin:/usr/sbin)
>> cer@Telcontar:~>
>>
>>
>> But it is an alias in my system
>
> This depends on the shell...

The default bash :-)

>
> marchhare% which dir
> dir: aliased to ls -F -C
> marchhare% echo $SHELL
> /bin/tcsh

Interesting.

--
Cheers, Carlos.

Subject: Re: Path and/or alias finding
From: Carlos E.R.
Newsgroups: comp.os.linux.misc
Date: Fri, 14 Jun 2024 20:02 UTC
References: 1 2 3 4 5
Path: eternal-september.org!news.eternal-september.org!feeder3.eternal-september.org!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From: robin_listas@es.invalid (Carlos E.R.)
Newsgroups: comp.os.linux.misc
Subject: Re: Path and/or alias finding
Date: Fri, 14 Jun 2024 22:02:01 +0200
Lines: 39
Message-ID: <p6kujkxtrb.ln2@Telcontar.valinor>
References: <v44em0$3i8j8$1@dont-email.me> <v4hkem$2u4k0$1@dont-email.me>
<v4hkle$2ta7j$1@dont-email.me> <g1cujkxqt4.ln2@Telcontar.valinor>
<ld3k2rFihpjU1@mid.individual.net>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
X-Trace: individual.net Rugb7wpzFTBdpRm8j/Vp7QeuoYaVfqEN2maQ19N1MaJw1J002j
X-Orig-Path: Telcontar.valinor!not-for-mail
Cancel-Lock: sha1:uDni3J+68lHZ8ks9vknHJHcLUwI= sha256:GcXV1D73ZQgIM1SVCll5TvGWcNliNtdM8LyPxSieMDA=
User-Agent: Mozilla Thunderbird
Content-Language: es-ES, en-CA
In-Reply-To: <ld3k2rFihpjU1@mid.individual.net>
View all headers

On 2024-06-14 21:30, John-Paul Stewart wrote:
> On 2024-06-14 1:42 p.m., Carlos E.R. wrote:
>>
>> What command would show what exact incantation is used? Ie, what
>> path/binary, or what alias?
>>
>> which tarx?
>
> If you're using Bash as your shell, the 'type' builtin command will tell
> you. E.g.,
>
> $ type ls
> ls is aliased to `ls --color=auto'
>

Ah, yes. I knew about "type", but I don't use it. I will now.

cer@Telcontar:~> type l
l is aliased to `ls -alF'
cer@Telcontar:~> type ls
ls is aliased to `_ls'
cer@Telcontar:~> type _ls
_ls is a function
_ls ()
{ local IFS=' ';
command ls $LS_OPTIONS ${1+"$@"}
} cer@Telcontar:~>
cer@Telcontar:~> echo $LS_OPTIONS
-N --color=tty -T 0
cer@Telcontar:~>

--
Cheers, Carlos.

Subject: Re: Path and/or alias finding
From: Lew Pitcher
Newsgroups: comp.os.linux.misc
Organization: A noiseless patient Spider
Date: Fri, 14 Jun 2024 20:24 UTC
References: 1 2 3 4 5
Path: eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: lew.pitcher@digitalfreehold.ca (Lew Pitcher)
Newsgroups: comp.os.linux.misc
Subject: Re: Path and/or alias finding
Date: Fri, 14 Jun 2024 20:24:53 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 53
Message-ID: <v4i8ul$2ta7j$2@dont-email.me>
References: <v44em0$3i8j8$1@dont-email.me> <v4hkem$2u4k0$1@dont-email.me>
<v4hkle$2ta7j$1@dont-email.me> <g1cujkxqt4.ln2@Telcontar.valinor>
<m1qdnct0DMZHDfH7nZ2dnZfqn_idnZ2d@giganews.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Date: Fri, 14 Jun 2024 22:24:54 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="a8a93098d8f8fb160cfc3f5a78b3faa2";
logging-data="3057907"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+s2rODGg6GyYad7kZip4cr4InAszYisRQ="
User-Agent: Pan/0.139 (Sexual Chocolate; GIT bf56508
git://git.gnome.org/pan2)
Cancel-Lock: sha1:SddnwD37AJ8aAzNIzfLlGMYBw/g=
View all headers

On Fri, 14 Jun 2024 18:50:02 +0000, Robert Heller wrote:

> At Fri, 14 Jun 2024 19:42:40 +0200 "Carlos E.R." <robin_listas@es.invalid> wrote:
>
>>
>> On 2024-06-14 16:38, Lew Pitcher wrote:
>> > On Fri, 14 Jun 2024 14:35:02 +0000, db wrote:
>> >
>> >> On Sun, 9 Jun 2024 14:36:49 -0000 (UTC), 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.
>> > [snip]
>> >>> Why doesn't it work from bin/ ?
>> >>
>> >> Red face time.
>> >> I just found out that I have an alias called tarx in
>> >> my .bashrc. In fact, someone asked me about this and
>> >> I answered in the negative, without checking. My apologies!
>> >
>> > Apology accepted. :-)
>> >
>> > Glad you found (and presumably fixed) your problem.
>>
>>
>> What command would show what exact incantation is used? Ie, what
>> path/binary, or what alias?
>>
>> which tarx?
[snip]
>> But it is an alias in my system
>
> This depends on the shell...
>
> marchhare% which dir
> dir: aliased to ls -F -C
> marchhare% echo $SHELL
> /bin/tcsh

16:22:25 $ echo $SHELL
/bin/bash

16:22:28 $ alias
alias tarx='tar -xf'

bash(1) says
"Aliases are created and listed with the alias command,
and removed with the unalias command."

--
Lew Pitcher
"In Skills We Trust"

Subject: Re: Path and/or alias finding
From: Lew Pitcher
Newsgroups: comp.os.linux.misc
Organization: A noiseless patient Spider
Date: Fri, 14 Jun 2024 20:30 UTC
References: 1 2 3 4 5 6
Path: eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: lew.pitcher@digitalfreehold.ca (Lew Pitcher)
Newsgroups: comp.os.linux.misc
Subject: Re: Path and/or alias finding
Date: Fri, 14 Jun 2024 20:30:19 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 72
Message-ID: <v4i98q$2ta7j$3@dont-email.me>
References: <v44em0$3i8j8$1@dont-email.me> <v4hkem$2u4k0$1@dont-email.me>
<v4hkle$2ta7j$1@dont-email.me> <g1cujkxqt4.ln2@Telcontar.valinor>
<m1qdnct0DMZHDfH7nZ2dnZfqn_idnZ2d@giganews.com>
<v4i8ul$2ta7j$2@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Date: Fri, 14 Jun 2024 22:30:19 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="a8a93098d8f8fb160cfc3f5a78b3faa2";
logging-data="3057907"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+Uzu/M/vLqS5CEmKaIllFWMKnK2NmwUFM="
User-Agent: Pan/0.139 (Sexual Chocolate; GIT bf56508
git://git.gnome.org/pan2)
Cancel-Lock: sha1:6paGYNXHmuv9GiegyNu4sJu7lYc=
View all headers

On Fri, 14 Jun 2024 20:24:53 +0000, Lew Pitcher wrote:

> On Fri, 14 Jun 2024 18:50:02 +0000, Robert Heller wrote:
>
>> At Fri, 14 Jun 2024 19:42:40 +0200 "Carlos E.R." <robin_listas@es.invalid> wrote:
>>
>>>
>>> On 2024-06-14 16:38, Lew Pitcher wrote:
>>> > On Fri, 14 Jun 2024 14:35:02 +0000, db wrote:
>>> >
>>> >> On Sun, 9 Jun 2024 14:36:49 -0000 (UTC), 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.
>>> > [snip]
>>> >>> Why doesn't it work from bin/ ?
>>> >>
>>> >> Red face time.
>>> >> I just found out that I have an alias called tarx in
>>> >> my .bashrc. In fact, someone asked me about this and
>>> >> I answered in the negative, without checking. My apologies!
>>> >
>>> > Apology accepted. :-)
>>> >
>>> > Glad you found (and presumably fixed) your problem.
>>>
>>>
>>> What command would show what exact incantation is used? Ie, what
>>> path/binary, or what alias?
>>>
>>> which tarx?
> [snip]
>>> But it is an alias in my system
>>
>> This depends on the shell...
>>
>> marchhare% which dir
>> dir: aliased to ls -F -C
>> marchhare% echo $SHELL
>> /bin/tcsh
>
> 16:22:25 $ echo $SHELL
> /bin/bash
>
> 16:22:28 $ alias
> alias tarx='tar -xf'
>
> bash(1) says
> "Aliases are created and listed with the alias command,
> and removed with the unalias command."

POSIX says
"A valid alias name shall be one that has been defined by
the alias utility and not subsequently undefined using
unalias."
(https://pubs.opengroup.org/onlinepubs/9699919799/utilities/V3_chap02.html#tag_18_03_01)
and further says (in regard to the alias utility)
"The alias utility shall create or redefine alias definitions
or write the values of existing alias definitions to standard
output."
(https://pubs.opengroup.org/onlinepubs/9699919799/utilities/alias.html)

So, it appears that bash conforms to POSIX requirements with
respect to the behaviour of it's "alias" builtin command.

--
Lew Pitcher
"In Skills We Trust"

Subject: Re: Path and/or alias finding
From: Carlos E.R.
Newsgroups: comp.os.linux.misc
Date: Fri, 14 Jun 2024 20:43 UTC
References: 1 2 3 4 5 6
Path: eternal-september.org!news.eternal-september.org!feeder3.eternal-september.org!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From: robin_listas@es.invalid (Carlos E.R.)
Newsgroups: comp.os.linux.misc
Subject: Re: Path and/or alias finding
Date: Fri, 14 Jun 2024 22:43:06 +0200
Lines: 37
Message-ID: <qjmujkx5ae.ln2@Telcontar.valinor>
References: <v44em0$3i8j8$1@dont-email.me> <v4hkem$2u4k0$1@dont-email.me>
<v4hkle$2ta7j$1@dont-email.me> <g1cujkxqt4.ln2@Telcontar.valinor>
<m1qdnct0DMZHDfH7nZ2dnZfqn_idnZ2d@giganews.com>
<v4i8ul$2ta7j$2@dont-email.me>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
X-Trace: individual.net 7xm9n59xlInsi7OEDBf3gA/lYHtDMNWJiyuNYjU0Tj5+rUM+5y
X-Orig-Path: Telcontar.valinor!not-for-mail
Cancel-Lock: sha1:jsuJB9JeZbLqj8ZfHJuCxuHwCPA= sha256:cl/QAim00Nx3gxuTAeF/yOgPHqFAChs2ck2ZttqnCf0=
User-Agent: Mozilla Thunderbird
Content-Language: es-ES, en-CA
In-Reply-To: <v4i8ul$2ta7j$2@dont-email.me>
View all headers

On 2024-06-14 22:24, Lew Pitcher wrote:
> On Fri, 14 Jun 2024 18:50:02 +0000, Robert Heller wrote:
>
>> At Fri, 14 Jun 2024 19:42:40 +0200 "Carlos E.R." <robin_listas@es.invalid> wrote:

....

>>> What command would show what exact incantation is used? Ie, what
>>> path/binary, or what alias?
>>>
>>> which tarx?
> [snip]
>>> But it is an alias in my system
>>
>> This depends on the shell...
>>
>> marchhare% which dir
>> dir: aliased to ls -F -C
>> marchhare% echo $SHELL
>> /bin/tcsh
>
> 16:22:25 $ echo $SHELL
> /bin/bash
>
> 16:22:28 $ alias
> alias tarx='tar -xf'

Yes, this confirms that it is an alias, but the question was rather how
to find that a particular incantation by the user runs what.

is it (tarx or whatever) a command in some path, or is it an alias?
"type" does that.

--
Cheers, Carlos.

Subject: Re: Path and/or alias finding
From: Lawrence D'Oliv
Newsgroups: comp.os.linux.misc
Organization: A noiseless patient Spider
Date: Wed, 31 Jul 2024 07:17 UTC
References: 1 2 3 4 5
Path: eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: ldo@nz.invalid (Lawrence D'Oliveiro)
Newsgroups: comp.os.linux.misc
Subject: Re: Path and/or alias finding
Date: Wed, 31 Jul 2024 07:17:37 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 10
Message-ID: <v8coeg$1g1h2$1@dont-email.me>
References: <v44em0$3i8j8$1@dont-email.me> <v4hkem$2u4k0$1@dont-email.me>
<v4hkle$2ta7j$1@dont-email.me> <g1cujkxqt4.ln2@Telcontar.valinor>
<m1qdnct0DMZHDfH7nZ2dnZfqn_idnZ2d@giganews.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Date: Wed, 31 Jul 2024 09:17:37 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="d34cd722eff3f68b299d698fd0d5419c";
logging-data="1574434"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/jdNCsaLjp32yFaB3pRdNr"
User-Agent: Pan/0.159 (Vovchansk; )
Cancel-Lock: sha1:afF1O5JAitUULNRPC49+osEvlKI=
View all headers

On Fri, 14 Jun 2024 18:50:02 +0000, Robert Heller wrote:

> marchhare% which dir
> dir: aliased to ls -F -C
> marchhare% echo $SHELL
> /bin/tcsh

I don’t think it’s specified by POSIX. bash has the “type” builtin which,
being builtin, can report on whether a given command is itself a builtin
or alias or function or an external executable.

Subject: Re: Path and/or alias finding
From: Lawrence D'Oliv
Newsgroups: comp.os.linux.misc
Organization: A noiseless patient Spider
Date: Wed, 31 Jul 2024 07:18 UTC
References: 1 2 3 4 5 6
Path: eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: ldo@nz.invalid (Lawrence D'Oliveiro)
Newsgroups: comp.os.linux.misc
Subject: Re: Path and/or alias finding
Date: Wed, 31 Jul 2024 07:18:00 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 5
Message-ID: <v8cof8$1g1h2$2@dont-email.me>
References: <v44em0$3i8j8$1@dont-email.me> <v4hkem$2u4k0$1@dont-email.me>
<v4hkle$2ta7j$1@dont-email.me> <g1cujkxqt4.ln2@Telcontar.valinor>
<ld3k2rFihpjU1@mid.individual.net> <p6kujkxtrb.ln2@Telcontar.valinor>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Date: Wed, 31 Jul 2024 09:18:01 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="d34cd722eff3f68b299d698fd0d5419c";
logging-data="1574434"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1939mUXtZFDtsvZ9DCOi1C9"
User-Agent: Pan/0.159 (Vovchansk; )
Cancel-Lock: sha1:CycnJhpueZ7e28E6w06vSGwfyRY=
View all headers

On Fri, 14 Jun 2024 22:02:01 +0200, Carlos E.R. wrote:

> I knew about "type", but I don't use it.

In bash, “help type” will tell you all about it.

Subject: Re: Path and/or alias finding
From: Lawrence D'Oliv
Newsgroups: comp.os.linux.misc
Organization: A noiseless patient Spider
Date: Wed, 31 Jul 2024 07:18 UTC
References: 1 2 3 4 5 6
Path: eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: ldo@nz.invalid (Lawrence D'Oliveiro)
Newsgroups: comp.os.linux.misc
Subject: Re: Path and/or alias finding
Date: Wed, 31 Jul 2024 07:18:58 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 8
Message-ID: <v8coh1$1g1h2$3@dont-email.me>
References: <v44em0$3i8j8$1@dont-email.me> <v4hkem$2u4k0$1@dont-email.me>
<v4hkle$2ta7j$1@dont-email.me> <g1cujkxqt4.ln2@Telcontar.valinor>
<m1qdnct0DMZHDfH7nZ2dnZfqn_idnZ2d@giganews.com>
<v4i8ul$2ta7j$2@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Date: Wed, 31 Jul 2024 09:18:58 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="d34cd722eff3f68b299d698fd0d5419c";
logging-data="1574434"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19Ftr2rbmh6aLUttYRbqjdH"
User-Agent: Pan/0.159 (Vovchansk; )
Cancel-Lock: sha1:N831SdI9XYHyUDJ4ZaC3KMRj3RI=
View all headers

On Fri, 14 Jun 2024 20:24:53 -0000 (UTC), Lew Pitcher wrote:

> bash(1) says
> "Aliases are created and listed with the alias command,
> and removed with the unalias command."

Functions are more powerful than aliases. They can take arguments and run
entire command sequences, all within the current shell process.

Pages:12

rocksolid light 0.9.8
clearnet tor