• Ain's avatar
    Fix borked version display for mksh · f960594c
    Ain authored
    `"$SHELL" -c "printf %s \$KSH_VERSION"` as part of the shell version
    detection for ksh and mksh was expanding to `printf %s $KSH_VERSION`
    inside of shell. This resulted in `$KSH_VERSION` being substituted as
    multiple arguments to printf. While (afaik) unspecified, mksh, bash
    and zsh resort to repeating the format strings. This resulted in all
    spaces missing from `$shell`, which in turn caused the string cleanup
    to fail: `Shell: mksh @MIRBSDKSHR562017/08/29`
    
    Quoting `$KSH_VERSION` causes it to be given to printf as a single
    argument, which preserves its spaces. The output after this change
    looks like follows: `Shell: mksh R56 2017/08/29`
    f960594c
Name
Last commit
Last update
.github Loading commit data...
.travis.yml Loading commit data...
CHANGELOG.md Loading commit data...
CONTRIBUTING.md Loading commit data...
LICENSE.md Loading commit data...
Makefile Loading commit data...
README.md Loading commit data...
neofetch Loading commit data...
neofetch.1 Loading commit data...