Skip to content

Commit

Permalink
Change orig zsh version with current zsh version on the fly in init/b…
Browse files Browse the repository at this point in the history
…ash.in
  • Loading branch information
Robert McLay committed Jan 6, 2024
1 parent 35b45ee commit 5b248ec
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions README.new
Original file line number Diff line number Diff line change
Expand Up @@ -124,3 +124,4 @@ Lmod 8.7+
* Issue #681: Internally rename complete name to be "complete<name>" and unwrap when necessary.
* TACC issue: Change the current version of zsh with the string ${ZSH_VERSION} when builting
the init/zsh file.
(8.7.34) * TACC issue: (Again) Cannot use the string ${ZSH_VERSION} in $FPATH. Instead change orig zsh version to current one.
2 changes: 1 addition & 1 deletion init/bash.in
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ fi
SUPPORT_KSH="@support_ksh@"
if [ $SUPPORT_KSH = yes -o -n "${KSH_VERSION+x}" ]; then
if [ -z "${__LMOD_SET_FPATH+x}" ]; then
zv='${ZSH_VERSION}'
zv=${ZSH_VERSION}
orig_zsh_version=@orig_zsh_version@
zsh_fpath=@zsh_fpath@
zsh_fpath=$(echo $zsh_fpath | sed -e "s|/$orig_zsh_version/|/$zv/|g" )
Expand Down

0 comments on commit 5b248ec

Please sign in to comment.