Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mdisplay returns an error "[: argument expected line 31 #3

Open
xmailla opened this issue Jan 2, 2025 · 0 comments
Open

mdisplay returns an error "[: argument expected line 31 #3

xmailla opened this issue Jan 2, 2025 · 0 comments

Comments

@xmailla
Copy link

xmailla commented Jan 2, 2025

Hello,

running mb and then showing a mail via #mailnumber returns an error.

It occurs to be at line 31:

[ $use_tmux -eq 0 -a -n $DISPLAY ] && use_xterm=1

Changing it to something like:


if [ -n $TMUX ]; then
      use_tmux=1
elif [ ${use_tmux} -eq 0 -a -n $DISPLAY ];then
       use_xterm=1
fi

fixes it here on my MacOS box (PR in approach)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant