GameServerManagers / GameServerManagers/LinuxGSM

Investigation in to quotes tmux and debug

Open
#3,416 2 comments 0 reactions 0 assignees View on GitHub
info: tmux type: feature
Dominant language
Shell
Stars
4.9k
Forks
864
PR merge metrics
No merged PRs in 30d

Description

With the recent issues relating to quotes in start parameters I want to better investigate quotes and how to correctly use them. I want to achieve more consistent results across both tmux and debug mode and across game servers.

Examples of issues
- Arma3 has problems with debug and start either not loading multiple mods or not starting correctly. Different results for debug and tmux.
- Some servers use escaped double quotes `\"` in start parameters (NS2, KF2,PZ)
- Some use just double quotes `"` in start parameters (MOM)
- most servers don't use any quotes which could cause issues for dirs that have spaces.

Currently, tmux uses quotes when it starts a new session
```
tmux new-session -d -x "${sessionwidth}" -y "${sessionheight}" -s "${sessionname}" "${preexecutable} ${executable} ${startparameters}"
```
When it was removed it caused a massive issue for many game servers
```
tmux new-session -d -x "${sessionwidth}" -y "${sessionheight}" -s "${sessionname}" ${preexecutable} ${executable} ${startparameters}
```
However, removing the quotes might actually be the correct way to do things. edit: tested using the sed command keeping quotes for tmux is definitely required

More research is needed and I would welcome any experts with tmux and quoting to give pointers on this one

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.