You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Please confirm there isn't an existing open bug report
I have searched open bugs for this issue
Summary
I'm using zsh as my shell. When I run $ zsh --login I get this error:
/usr/share/defaults/etc/profile.d/50-history.sh:8: command not found: shopt
This is because this file is part of the bash package and assumes it is only ever sourced by bash, which is not always the case. Here is how it might look like instead:
# Begin /usr/share/defaults/etc/profile.d/50-history.sh
# Append to history file on exit instead of overwrite (parallel terminals)
if [ "$0" == "zsh" ]; then
setopt APPEND_HISTORY
elif [ "$0" == "bash" ]; then
shopt -s histappend
fi
…
I only know bash and zsh, so there might be other cases which need handling.
Steps to reproduce
In a terminal run:
$ zsh --login
Expected result
A zsh login shell starts without error.
Actual result
The zsh login shell starts, but prints out this error message:
/usr/share/defaults/etc/profile.d/50-history.sh:8: command not found: shopt
Please confirm there isn't an existing open bug report
Summary
I'm using zsh as my shell. When I run
$ zsh --login
I get this error:This is because this file is part of the bash package and assumes it is only ever sourced by bash, which is not always the case. Here is how it might look like instead:
I only know bash and zsh, so there might be other cases which need handling.
Steps to reproduce
In a terminal run:
Expected result
A zsh login shell starts without error.
Actual result
The zsh login shell starts, but prints out this error message:
Environment
Repo
Shannon (stable)
Desktop Environment
Budgie
System details
Other comments
No response
The text was updated successfully, but these errors were encountered: