pkgsrc-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: pkgsrc/shells/bash



Module Name:    pkgsrc
Committed By:   kim
Date:           Mon Jul 21 17:16:09 UTC 2025

Modified Files:
        pkgsrc/shells/bash: Makefile

Log Message:
bash: Enable SSH_SOURCE_BASHRC

Align pkgsrc bash behaviour with various distributions (RHEL-based Linux
distros, Debian-based Linux distros, NixOS/nixpkgs) to improve user
experience and mitigate any possible observed element of surprise.

Some rationale:

- Many users expect that when they execute a command remotely (e.g., ssh
  host "my_custom_script.sh" or ssh host "alias_name"), that command
  should run in an environment that is as similar as possible to their
  interactive login environment.

- This behavior ensures compatibility with scripts, tools, and user
  habits that have come to rely on ~/.bashrc being sourced for remote
  SSH execution.

The following is an example for dividing ~/.bashrc into commands for all
shells and those only for interactive shells

  alias where='type -a'

  # If not running interactively, don't do anything else
  case "${-}" in
  *i*) ;;
    *) return;;
  esac

  shopt -s checkwinsize
  shopt -s globstar
  shopt -s histappend

  HISTCONTROL=ignoreboth
  HISTFILESIZE=2000
  HISTSIZE=1000
  HISTTIMEFORMAT='%F  %H:%M  '

Increment PKGREVISION for behaviour change.


To generate a diff of this commit:
cvs rdiff -u -r1.119 -r1.120 pkgsrc/shells/bash/Makefile

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/shells/bash/Makefile
diff -u pkgsrc/shells/bash/Makefile:1.119 pkgsrc/shells/bash/Makefile:1.120
--- pkgsrc/shells/bash/Makefile:1.119   Thu Jul 10 14:36:20 2025
+++ pkgsrc/shells/bash/Makefile Mon Jul 21 17:16:09 2025
@@ -1,10 +1,11 @@
-# $NetBSD: Makefile,v 1.119 2025/07/10 14:36:20 jperkin Exp $
+# $NetBSD: Makefile,v 1.120 2025/07/21 17:16:09 kim Exp $
 
 BASH_VERSION=          5.3
 #BASH_PATCHLEVEL=      37
 
 DISTNAME=      bash-${BASH_VERSION}
 #PKGNAME=      bash-${BASH_VERSION}.${BASH_PATCHLEVEL}
+PKGREVISION=   1
 CATEGORIES=    shells
 MASTER_SITES=  ${MASTER_SITE_GNU:=bash/}
 
@@ -22,6 +23,7 @@ GNU_CONFIGURE=                yes
 MAKE_ENV+=             INSTALL_SCRIPT=${INSTALL_SCRIPT:Q}
 CONFIGURE_ARGS=                LOCAL_LDFLAGS=${EXPORT_SYMBOLS_LDFLAGS:M*:Q}
 CPPFLAGS+=             -DDEFAULT_PATH_VALUE="\"/sbin:/usr/sbin:/usr/bin:/bin:${PREFIX}/sbin:${PREFIX}/bin:/usr/local/sbin:/usr/local/bin\""
+CPPFLAGS+=             -DSSH_SOURCE_BASHRC
 BUILD_TARGET=          all loadables
 TEST_TARGET=           test
 



Home | Main Index | Thread Index | Old Index