Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Primacy of /etc/bashrc.d vs /etc/profile.d
View unanswered posts
View posts from last 24 hours

Goto page Previous  1, 2  
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
RumpletonBongworth
n00b
n00b


Joined: 17 Jun 2024
Posts: 73

PostPosted: Sun Sep 01, 2024 1:11 am    Post subject: Re: Primacy of /etc/bashrc.d vs /etc/profile.d Reply with quote

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
View user's profile Send private message
RumpletonBongworth
n00b
n00b


Joined: 17 Jun 2024
Posts: 73

PostPosted: Sun Sep 01, 2024 9:26 pm    Post subject: Reply with quote

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
View user's profile Send private message
mv
Watchman
Watchman


Joined: 20 Apr 2005
Posts: 6780

PostPosted: Sun Sep 08, 2024 4:43 pm    Post subject: Reply with quote

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
View user's profile Send private message
RumpletonBongworth
n00b
n00b


Joined: 17 Jun 2024
Posts: 73

PostPosted: Sun Sep 08, 2024 5:48 pm    Post subject: Reply with quote

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
View user's profile Send private message
Zucca
Moderator
Moderator


Joined: 14 Jun 2007
Posts: 3683
Location: Rasi, Finland

PostPosted: Sun Sep 08, 2024 6:25 pm    Post subject: Reply with quote

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
View user's profile Send private message
RumpletonBongworth
n00b
n00b


Joined: 17 Jun 2024
Posts: 73

PostPosted: Sun Sep 08, 2024 6:53 pm    Post subject: Reply with quote

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
View user's profile Send private message
Zucca
Moderator
Moderator


Joined: 14 Jun 2007
Posts: 3683
Location: Rasi, Finland

PostPosted: Sun Sep 08, 2024 8:10 pm    Post subject: Reply with quote

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
View user's profile Send private message
RumpletonBongworth
n00b
n00b


Joined: 17 Jun 2024
Posts: 73

PostPosted: Mon Sep 09, 2024 2:52 am    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo All times are GMT
Goto page Previous  1, 2
Page 2 of 2

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum