From: "Jakub Kądziołka" <kuba@kadziolka.net>
To: 42752@debbugs.gnu.org
Subject: [bug#42752] [PATCH core-updates] gnu: bash: Make completions work in non-login shells.
Date: Sat, 8 Aug 2020 00:14:39 +0200 [thread overview]
Message-ID: <20200807221439.729-1-kuba@kadziolka.net> (raw)
Currently, /etc/bashrc is only loaded by /etc/profile. Because the
former is responsible for setting up command-specific completions, they
currently only work in login shells. This patch configures bash to load
/etc/bashrc in interactive non-login shells, as by default no
system-wide configuration is loaded.
* gnu/packages/bash.scm (bash): Set SYS_BASHRC to /etc/bashrc.
---
gnu/packages/bash.scm | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/gnu/packages/bash.scm b/gnu/packages/bash.scm
index 47ca625d9a..9784e2ccc1 100644
--- a/gnu/packages/bash.scm
+++ b/gnu/packages/bash.scm
@@ -108,7 +108,8 @@ number/base32-hash tuples, directly usable in the 'patch-series' form."
(let* ((cppflags (string-join '("-DDEFAULT_PATH_VALUE='\"/no-such-path\"'"
"-DSTANDARD_UTILS_PATH='\"/no-such-path\"'"
"-DNON_INTERACTIVE_LOGIN_SHELLS"
- "-DSSH_SOURCE_BASHRC")
+ "-DSSH_SOURCE_BASHRC"
+ "-DSYS_BASHRC='\"/etc/bashrc\"'")
" "))
(configure-flags
``("--with-installed-readline"
--
2.28.0
next reply other threads:[~2020-08-07 22:15 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-08-07 22:14 Jakub Kądziołka [this message]
2020-08-10 9:25 ` [bug#42752] [PATCH core-updates] gnu: bash: Make completions work in non-login shells Mathieu Othacehe
2020-08-10 14:41 ` Jakub Kądziołka
2020-08-11 8:44 ` Mathieu Othacehe
2023-10-21 19:24 ` Maxim Cournoyer
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://guix.gnu.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20200807221439.729-1-kuba@kadziolka.net \
--to=kuba@kadziolka.net \
--cc=42752@debbugs.gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/guix.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).