Join the community today
Register Now

AlmaLinux Almalinux 9 /root/.bashrc typo

Discussion in 'Bug Reports' started by pamamolf, Mar 6, 2025.

  1. pamamolf

    pamamolf Premium Member Premium Member

    4,087
    428
    83
    May 31, 2014
    Ratings:
    +834
    Local Time:
    9:35 AM
    Nginx-1.25.x
    MariaDB 10.3.x
    Hi,


    I install the latest Centminmod beta at Almalinux 9 and i got this warning when i ssh back to it:

    Code:
    -bash: /root/.bashrc: line 63: syntax error: unexpected end of file
    The line is:

    Code:
    fialias wget='/usr/local/bin/wget'
    I think it should be:

    Code:
        fi
    fi
    
    alias wget='/usr/local/bin/wget'
     
  2. eva2000

    eva2000 Administrator Staff Member

    54,935
    12,240
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,812
    Local Time:
    5:35 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    do you have the full contents of your /root/.bashrc could be a change in defaults prior to Centmin Mod updates

    though I don't see how as the update is literally just
    Code (Text):
    echo "alias wget='/usr/local/bin/wget'" >> /root/.bashrc
    
     
  3. pamamolf

    pamamolf Premium Member Premium Member

    4,087
    428
    83
    May 31, 2014
    Ratings:
    +834
    Local Time:
    9:35 AM
    Nginx-1.25.x
    MariaDB 10.3.x
    Operating System: AlmaLinux 9.5 (Teal Serval)

    cat /root/.bashrc

    Code:
    # .bashrc
    
    # User specific aliases and functions
    
    # alias rm='rm -i'
    # alias cp='cp -i'
    # alias mv='mv -i'
    
    # Source global definitions
    if [ -f /etc/bashrc ]; then
            . /etc/bashrc
    fi
    
    # enable color support of ls and also add handy aliases
    if [ -x /usr/bin/dircolors ]; then
        test -r ~/.dircolors && eval "$(dircolors -b ~/.dircolors)" || eval "$(dircolors -b)"
        alias ll='ls --color -alhF'
        alias la='ls --color -A'
        alias l='ls --color -CF'
    
        alias grep='grep --color=auto'
        alias fgrep='fgrep --color=auto'
        alias egrep='egrep --color=auto'
    fi
    
    # enable programmable completion features (you don't need to enable
    # this, if it's already enabled in /etc/bash.bashrc and /etc/profile
    # sources /etc/bash.bashrc).
    if [ -f /etc/bash_completion ] && ! shopt -oq posix; then
        . /etc/bash_completion
    fi
    
    export HISTSIZE=10000
    
    if [[ -z "$SSH_CONNECTION" ]]; then
        test -f '/etc/profile' && source '/etc/profile'
    fi
    
    if [ $SHLVL -eq 1 ]; then
        if [ -d /repair ]; then
            export PROMPT_COMMAND=""
        else
            export PROMPT_COMMAND="source /etc/profile.d/extended_history.sh; _extended_history; $PROMPT_COMMAND"
        fi
    fi
    
    alias wget='/usr/local/bin/wget'
    crontab () { [[ $@ =~ -[iel]*r ]] && echo r not allowed || command crontab "$@" ;}
    alias pwdh='echo -n "$HOSTNAME"; echo " $PWD"'
    alias qrencode='qrencode -t ansiutf8'
    HISTTIMEFORMAT="[%d.%m.%y] %T   "
    export HISTSIZE=10000
    export HISTTIMEFORMAT
    export PS1="[\A][\u@\H \W]\\$ "
    export CCACHE_DIR="/home/.ccache"
    export CC="ccache gcc"
    export CXX="ccache g++"
    export CCACHE_CPP2=yes
    export PATH="$PATH:/usr/lib64/ccache:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin"
    alias postfixlog='pflogsumm -d today --verbose_msg_detail /var/log/maillog'
    alias cmdir='pushd /usr/local/src/centminmod'
    alias fpm-errlog='tail -10 /var/log/php-fpm/www-error.log'
    alias fpm-phperrlog='tail -10 /var/log/php-fpm/www-php.error.log'
    alias fpm-slowlog='tail -10 /var/log/php-fpm/www-slow.log'
     
  4. eva2000

    eva2000 Administrator Staff Member

    54,935
    12,240
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,812
    Local Time:
    5:35 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    Interesting, I don't believe this part is default in new AlmaLinux installs?

    Code (Text):
    
    if [ $SHLVL -eq 1 ]; then
        if [ -d /repair ]; then
            export PROMPT_COMMAND=""
        else
            export PROMPT_COMMAND="source /etc/profile.d/extended_history.sh; _extended_history; $PROMPT_COMMAND"
        fi
    fi
    

    Something you installed? Or something new for dedaults
     
  5. pamamolf

    pamamolf Premium Member Premium Member

    4,087
    428
    83
    May 31, 2014
    Ratings:
    +834
    Local Time:
    9:35 AM
    Nginx-1.25.x
    MariaDB 10.3.x
    Nothing from my side 100%.