weechat / weechat

The extensible chat client.

Home Page:https://weechat.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

double slash using ${weechat_config_dir}

weechatter opened this issue · comments

Describe the bug

WeeChat does not check if a slash already exists in ${weechat_config_dir}

Steps to reproduce

  1. start weechat with weechat -d ~/.weechat/ (with the trailing slash)
  2. /eval -n ${weechat_config_dir}/ecdsa.pem

Current behavior

/eval -n ${weechat_config_dir}/ecdsa.pem
== [/home/pi/.weechat//ecdsa.pem] 

Expected behavior

/eval -n ${weechat_config_dir}/ecdsa.pem
== [/home/pi/.weechat/ecdsa.pem]

Suggested solutions

No response

Additional information

No response

WeeChat version

4.3.0-dev

What OS are you using?

raspbian

On which terminal are you running WeeChat?

konsole

Which terminal multiplexer are you using?

tmux