quake-bash-launcher

Fixed a regression (from v0.3) where a trailing slash would be appended when completing a gamedir if you happen to be in your basedir:

Code:
quake -game rogue/ +map r1m3

This was caused by my attempt to keep the fix for spaces in gamedir names compatible with older Bash versions. Now 5.3 is the minimum.
Support gamedirs with spaces in the name.
Fixed a couple of bugs in +map completion that were only happening when multiple -game options preceded +map:
  • in title view, with maps from different gamedirs having the same name, part of the title would leak into the command line, e.g. start: The . The title should never be inserted on the command line, it is supposed to be only informative.
  • the interleaved sorting used to depend on the file listings of PAK files to be already sorted. I've since encountered some PAK files that weren't sorted, so I now explicitly call sort(1).