Re: Path and/or alias finding

Liste des GroupesRevenir à col misc 
Sujet : Re: Path and/or alias finding
De : lew.pitcher (at) *nospam* digitalfreehold.ca (Lew Pitcher)
Groupes : comp.os.linux.misc
Date : 14. Jun 2024, 21:30:19
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <v4i98q$2ta7j$3@dont-email.me>
References : 1 2 3 4 5 6
User-Agent : Pan/0.139 (Sexual Chocolate; GIT bf56508 git://git.gnome.org/pan2)
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"

Date Sujet#  Auteur
9 Jun 24 * tar problem40db
9 Jun 24 +- Re: tar problem1Marco Moock
9 Jun 24 +- Re: tar problem1Lew Pitcher
9 Jun 24 +* Re: tar problem18Richard Kettlewell
9 Jun 24 i`* Re: tar problem17Robert Heller
10 Jun 24 i +* Re: tar problem15db
10 Jun 24 i i`* Re: tar problem14Lew Pitcher
10 Jun 24 i i `* Re: tar problem13Carlos E. R.
11 Jun 24 i i  `* Re: tar problem12Lew Pitcher
11 Jun 24 i i   `* Re: tar problem11Carlos E. R.
11 Jun 24 i i    `* Re: tar problem10db
11 Jun 24 i i     `* Re: tar problem9Rich
11 Jun 24 i i      +- Re: tar problem1Lew Pitcher
12 Jun 24 i i      `* Re: tar problem7db
12 Jun 24 i i       `* Re: tar problem6Ralf Fassel
12 Jun 24 i i        `* Re: tar problem5Richard Kettlewell
12 Jun 24 i i         +* Re: tar problem2Robert Heller
13 Jun 24 i i         i`- Re: tar problem1Richard Kettlewell
13 Jun 24 i i         +- Re: tar problem1Ralf Fassel
13 Jun 24 i i         `- Re: tar problem1Carlos E. R.
12 Jun 24 i `- Re: tar problem1candycanearter07
11 Jun 24 +* Re: tar problem3Lew Pitcher
11 Jun 24 i+- Re: tar problem1Carlos E. R.
12 Jun 24 i`- Re: tar problem1db
12 Jun 24 +* Re: tar problem2Marc Olschok
12 Jun 24 i`- Re: tar problem1Robert Heller
12 Jun 24 +- Re: tar problem1marrgol
14 Jun 24 `* Re: tar problem13db
14 Jun 24  `* Re: tar problem12Lew Pitcher
14 Jun 24   `* Path and/or alias finding11Carlos E.R.
14 Jun 24    +* Re: Path and/or alias finding7Robert Heller
14 Jun 24    i+- Re: Path and/or alias finding1Carlos E.R.
14 Jun 24    i+* Re: Path and/or alias finding4Lew Pitcher
14 Jun 24    ii+- Re: Path and/or alias finding1Lew Pitcher
14 Jun 24    ii+- Re: Path and/or alias finding1Carlos E.R.
31 Jul 24    ii`- Re: Path and/or alias finding1Lawrence D'Oliveiro
31 Jul 24    i`- Re: Path and/or alias finding1Lawrence D'Oliveiro
14 Jun 24    `* Re: Path and/or alias finding3John-Paul Stewart
14 Jun 24     `* Re: Path and/or alias finding2Carlos E.R.
31 Jul 24      `- Re: Path and/or alias finding1Lawrence D'Oliveiro

Haut de la page

Les messages affichés proviennent d'usenet.

NewsPortal