Welcome to Centmin Mod Community
Become a Member

ZSH & Oh My Zsh

Discussion in 'Bug Reports' started by JoeDer, Sep 29, 2019.

  1. JoeDer

    JoeDer Premium Member Premium Member

    50
    11
    8
    Feb 22, 2015
    Ratings:
    +34
    Local Time:
    6:58 PM
    Nginx 1.17.x
    MariaDB 10.3.x
    • CentOS Version: CentOS 7 64bit
    • Centmin Mod Version Installed: 123.09beta01
    • Nginx Version Installed: 1.17.4
    • PHP Version Installed: 7.3.10
    • MariaDB MySQL Version Installed: 10.3
    • When was last time updated Centmin Mod code base ? : 28 Sep 2019
    I think a bug came on /etc/profile.d/dmotd.sh file after ZSH & Oh My Zsh installation.
    When I'm login in via SSH a message appears about an error in dmotd.sh file.
    Code (Text):
    /etc/profile.d/dmotd.sh:3: parse error near `>'
    

    Untitled.png

    If I comment the 3rd line in /etc/profile.d/dmotd.sh then everything looks good but I don't know if it's the right way (probably not).
    Code (Text):
    # if echo $0 | grep -e ^\- 2>&1>/dev/null; then login='login'; else login='non-login'; fi;
    
     
    • Informative Informative x 1
  2. eva2000

    eva2000 Administrator Staff Member

    41,726
    9,396
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +14,432
    Local Time:
    1:58 AM
    Nginx 1.17.x
    MariaDB 5.5/10.x
    Centmin Mod doesn't support nor has it been tested with ZSH unfortunately right now. Wouldn't be advisable to use ZSH as no idea how Centmin Mod bash shell scripting will respond and interpret ZSH versus BASH.
     
    • Informative Informative x 1
  3. JoeDer

    JoeDer Premium Member Premium Member

    50
    11
    8
    Feb 22, 2015
    Ratings:
    +34
    Local Time:
    6:58 PM
    Nginx 1.17.x
    MariaDB 10.3.x
    Oh ok, I'll revert back to default shell, thank you!
     
  4. eva2000

    eva2000 Administrator Staff Member

    41,726
    9,396
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +14,432
    Local Time:
    1:58 AM
    Nginx 1.17.x
    MariaDB 5.5/10.x
    Yeah ZSH looks nice and fancy compared to BASH. Just minor differences between them for shell scripting, could result in different results or outcomes in Centmin Mod that are unforseen.
     
    • Like Like x 1