View previous topic :: View next topic |
Author |
Message |
RumpletonBongworth Tux's lil' helper
Joined: 17 Jun 2024 Posts: 82
|
Posted: Sun Sep 01, 2024 1:11 am Post subject: Re: Primacy of /etc/bashrc.d vs /etc/profile.d |
|
|
jesnow wrote: | /etc/bash/bashrc.d/* are sourced *twice!*.
This is really not what should be happening. |
Some users elect to copy /etc/bash/bashrc to ~/.bashrc, resulting in double-sourcing. Perhaps you are among them? There is now a check to warn users of this particular misconfiguration. |
|
Back to top |
|
|
RumpletonBongworth Tux's lil' helper
Joined: 17 Jun 2024 Posts: 82
|
Posted: Sun Sep 01, 2024 9:26 pm Post subject: |
|
|
I have submitted a patch which, if accepted, will address the matter by refraining from defining an alias in the case that an alias or function already exists by the specified name. |
|
Back to top |
|
|
mv Watchman
Joined: 20 Apr 2005 Posts: 6780
|
Posted: Sun Sep 08, 2024 4:43 pm Post subject: |
|
|
flexibeast wrote: | RumpletonBongworth wrote: | All implementations of the Shell Command Language must support alias. |
Indeed. Here's POSIX on the matter. |
Well, that's the brand new POSIX standard. Not sure whether it is already officially released or still a topic under discussion, but I am quite sure that it was not released before 2024. |
|
Back to top |
|
|
RumpletonBongworth Tux's lil' helper
Joined: 17 Jun 2024 Posts: 82
|
Posted: Sun Sep 08, 2024 5:48 pm Post subject: |
|
|
mv wrote: | flexibeast wrote: | RumpletonBongworth wrote: | All implementations of the Shell Command Language must support alias. |
Indeed. Here's POSIX on the matter. |
Well, that's the brand new POSIX standard. Not sure whether it is already officially released or still a topic under discussion, but I am quite sure that it was not released before 2024. |
The alias utility was introduced by the publication of X/Open Common Applications Environment (CAE) Portability Guide Issue 4, also known as XPG4. That was in 1992. It was subsumed by the Single UNIX Specification in 1994. |
|
Back to top |
|
|
Zucca Moderator
Joined: 14 Jun 2007 Posts: 3752 Location: Rasi, Finland
|
Posted: Sun Sep 08, 2024 6:25 pm Post subject: |
|
|
RumpletonBongworth wrote: | The alias utility was introduced by the publication of X/Open Common Applications Environment (CAE) Portability Guide Issue 4, also known as XPG4. That was in 1992. It was subsumed by the Single UNIX Specification in 1994. | Afaik SUS is a superset of POSIX. Right?
Although 1994 is already 30 years ago. So I would guess the standard (alias) would have been included in POSIX by now then. _________________ ..: Zucca :..
My gentoo installs: | init=/sbin/openrc-init
-systemd -logind -elogind seatd |
Quote: | I am NaN! I am a man! |
|
|
Back to top |
|
|
RumpletonBongworth Tux's lil' helper
Joined: 17 Jun 2024 Posts: 82
|
Posted: Sun Sep 08, 2024 6:53 pm Post subject: |
|
|
Zucca wrote: | RumpletonBongworth wrote: | The alias utility was introduced by the publication of X/Open Common Applications Environment (CAE) Portability Guide Issue 4, also known as XPG4. That was in 1992. It was subsumed by the Single UNIX Specification in 1994. | Afaik SUS is a superset of POSIX. Right?
Although 1994 is already 30 years ago. So I would guess the standard (alias) would have been included in POSIX by now then. |
Allow me to settle this once and for all.
- alias was introduced in an official capacity by XPG4
- XPG4 was assimilated by SUSv1
- alias was therefore present in SUSv1
- alias was therefore present in SUSv2
- alias was therefore present in SUSv3, which is essentially the same as POSIX-1.2001
- POSIX-1.2001 consolidated the POSIX.1, POSIX.2, and SUS standards through the efforts of the Austin Group
|
|
Back to top |
|
|
Zucca Moderator
Joined: 14 Jun 2007 Posts: 3752 Location: Rasi, Finland
|
Posted: Sun Sep 08, 2024 8:10 pm Post subject: |
|
|
RumpletonBongworth wrote: | - alias was therefore present in SUSv3, which is essentially the same as POSIX-1.2001
- POSIX-1.2001 consolidated the POSIX.1, POSIX.2, and SUS standards through the efforts of the Austin Group
| So based on these, alias was standardized into POSIX in 2001 (Or in beginning of 2002). _________________ ..: Zucca :..
My gentoo installs: | init=/sbin/openrc-init
-systemd -logind -elogind seatd |
Quote: | I am NaN! I am a man! |
|
|
Back to top |
|
|
RumpletonBongworth Tux's lil' helper
Joined: 17 Jun 2024 Posts: 82
|
Posted: Mon Sep 09, 2024 2:52 am Post subject: |
|
|
Zucca wrote: | RumpletonBongworth wrote: | - alias was therefore present in SUSv3, which is essentially the same as POSIX-1.2001
- POSIX-1.2001 consolidated the POSIX.1, POSIX.2, and SUS standards through the efforts of the Austin Group
| So based on these, alias was standardized into POSIX in 2001 (Or in beginning of 2002). | Yes. At that point, it became an element of Shell and Utilities, Issue 6 (XCU). There it has remained through all of the subsequent issues and so-called technical corrigenda. |
|
Back to top |
|
|
|