-
Notifications
You must be signed in to change notification settings - Fork 94
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
bash: Fix bashisms being applied to non-bash shells
Move sourcing of bashrc.d directory to default skel/.bashrc Make all scripts in profile.d POSIX compliant Fixes issues with errors being emitted by non-bash shells Fixes bash specific user scripts improperly being loaded by other shells Add README for profile.d files needing to be POSIX compliant
- Loading branch information
Showing
7 changed files
with
34 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
Files in this directory must have code that is POSIX compliant, since the file is loaded by all BOURNE compatible shells | ||
If you must use a bash-only function like shopt it must be put in a block that will load it only for bash | ||
|
||
e.g. | ||
|
||
``` | ||
if [ $SHELL = "/usr/bin/bash" ]; then | ||
shopt -s checkwinsize | ||
fi | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,11 @@ | ||
source /usr/share/defaults/etc/profile | ||
|
||
# User specific bash aliases and functions | ||
if [ -d ~/.bashrc.d ]; then | ||
for rc in ~/.bashrc.d/*; do | ||
if [ -f "$rc" ]; then | ||
. "$rc" | ||
fi | ||
done | ||
unset rc | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,8 +3,8 @@ | |
<Name>bash</Name> | ||
<Homepage>https://www.gnu.org/software/bash</Homepage> | ||
<Packager> | ||
<Name>Reilly Brogan</Name> | ||
<Email>[email protected]</Email> | ||
<Name>Tracey Clark</Name> | ||
<Email>[email protected]</Email> | ||
</Packager> | ||
<License>GPL-3.0-or-later</License> | ||
<PartOf>system.base</PartOf> | ||
|
@@ -135,7 +135,7 @@ | |
</Description> | ||
<PartOf>programming.devel</PartOf> | ||
<RuntimeDependencies> | ||
<Dependency release="84">bash</Dependency> | ||
<Dependency release="85">bash</Dependency> | ||
</RuntimeDependencies> | ||
<Files> | ||
<Path fileType="header">/usr/include/bash/alias.h</Path> | ||
|
@@ -201,12 +201,12 @@ | |
</Files> | ||
</Package> | ||
<History> | ||
<Update release="84"> | ||
<Date>2024-10-18</Date> | ||
<Update release="85"> | ||
<Date>2024-11-12</Date> | ||
<Version>5.2.37</Version> | ||
<Comment>Packaging update</Comment> | ||
<Name>Reilly Brogan</Name> | ||
<Email>[email protected]</Email> | ||
<Name>Tracey Clark</Name> | ||
<Email>[email protected]</Email> | ||
</Update> | ||
</History> | ||
</PISI> |