Welcome to Centmin Mod Community
Register Now

[Solved] CMDIR Repeat

Discussion in 'Bug Reports' started by Jimmy, Apr 24, 2017.

  1. Jimmy

    Jimmy Well-Known Member

    1,778
    388
    83
    Oct 24, 2015
    East Coast USA
    Ratings:
    +987
    Local Time:
    9:09 AM
    09beta01

    Not sure if this is my command prompt mod or something else. I'm using:

    Code:
    PS1="\[\e[0;32m\][\u@\h \W]\\$ \[\e[0m\]"
    If I keep entering cmdir I get what is below. It even continues after I go into the centmin menu. I don't have the default PS1 anymore to test out on a stock system to see if it's my bash or not.

    Just wanted to mention it if it's a bug or not.


    Code:
    [root@devbox ~]# cmdir
    /usr/local/src/centminmod ~
    [root@devbox centminmod]# cmdir
    /usr/local/src/centminmod /usr/local/src/centminmod ~
    [root@devbox centminmod]# cmdir
    /usr/local/src/centminmod /usr/local/src/centminmod /usr/local/src/centminmod ~
    [root@devbox centminmod]# cmdir
    /usr/local/src/centminmod /usr/local/src/centminmod /usr/local/src/centminmod /usr/local/src/centminmod ~
    [root@devbox centminmod]# cmdir
    /usr/local/src/centminmod /usr/local/src/centminmod /usr/local/src/centminmod /usr/local/src/centminmod /usr/local/src/centminmod ~
    [root@devbox centminmod]# cmdir
    /usr/local/src/centminmod /usr/local/src/centminmod /usr/local/src/centminmod /usr/local/src/centminmod /usr/local/src/centminmod /usr/local/src/centminmod ~
    [root@devbox centminmod]# cmdir
    /usr/local/src/centminmod /usr/local/src/centminmod /usr/local/src/centminmod /usr/local/src/centminmod /usr/local/src/centminmod /usr/local/src/centminmod /usr/local/src/centminmod ~
    [root@devbox centminmod]# cmdir
    /usr/local/src/centminmod /usr/local/src/centminmod /usr/local/src/centminmod /usr/local/src/centminmod /usr/local/src/centminmod /usr/local/src/centminmod /usr/local/src/centminmod /usr/local/src/centminmod ~
    [root@devbox centminmod]# cmdir
    /usr/local/src/centminmod /usr/local/src/centminmod /usr/local/src/centminmod /usr/local/src/centminmod /usr/local/src/centminmod /usr/local/src/centminmod /usr/local/src/centminmod /usr/local/src/centminmod /usr/local/src/centminmod ~
    [root@devbox centminmod]# cmdir
    /usr/local/src/centminmod /usr/local/src/centminmod /usr/local/src/centminmod /usr/local/src/centminmod /usr/local/src/centminmod /usr/local/src/centminmod /usr/local/src/centminmod /usr/local/src/centminmod /usr/local/src/centminmod /usr/local/src/centminmod ~
    [root@devbox centminmod]# cmdir
    /usr/local/src/centminmod /usr/local/src/centminmod /usr/local/src/centminmod /usr/local/src/centminmod /usr/local/src/centminmod /usr/local/src/centminmod /usr/local/src/centminmod /usr/local/src/centminmod /usr/local/src/centminmod /usr/local/src/centminmod /usr/local/src/centminmod ~
    [root@devbox centminmod]# cmdir
    /usr/local/src/centminmod /usr/local/src/centminmod /usr/local/src/centminmod /usr/local/src/centminmod /usr/local/src/centminmod /usr/local/src/centminmod /usr/local/src/centminmod /usr/local/src/centminmod /usr/local/src/centminmod /usr/local/src/centminmod /usr/local/src/centminmod /usr/local/src/centminmod ~
    [root@devbox centminmod]# cmdir
    /usr/local/src/centminmod /usr/local/src/centminmod /usr/local/src/centminmod /usr/local/src/centminmod /usr/local/src/centminmod /usr/local/src/centminmod /usr/local/src/centminmod /usr/local/src/centminmod /usr/local/src/centminmod /usr/local/src/centminmod /usr/local/src/centminmod /usr/local/src/centminmod /usr/local/src/centminmod ~
    [root@devbox centminmod]# cmdir
    /usr/local/src/centminmod /usr/local/src/centminmod /usr/local/src/centminmod /usr/local/src/centminmod /usr/local/src/centminmod /usr/local/src/centminmod /usr/local/src/centminmod /usr/local/src/centminmod /usr/local/src/centminmod /usr/local/src/centminmod /usr/local/src/centminmod /usr/local/src/centminmod /usr/local/src/centminmod /usr/local/src/centminmod ~
    [root@devbox centminmod]# cmdir
    /usr/local/src/centminmod /usr/local/src/centminmod /usr/local/src/centminmod /usr/local/src/centminmod /usr/local/src/centminmod /usr/local/src/centminmod /usr/local/src/centminmod /usr/local/src/centminmod /usr/local/src/centminmod /usr/local/src/centminmod /usr/local/src/centminmod /usr/local/src/centminmod /usr/local/src/centminmod /usr/local/src/centminmod /usr/local/src/centminmod ~
    [root@devbox centminmod]# 
     
  2. eva2000

    eva2000 Administrator Staff Member

    53,178
    12,112
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,647
    Local Time:
    11:09 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    not a bug it's due to cmdir command using pushd command which lists all directories in push directory listing on running

    pushd and popd - Wikipedia

    example change to 3 directories using pushd command
    Code (Text):
    pushd /home/nginx/domains/domain.com/public/images
    pushd /usr/local/src/centminmod
    pushd /root/tools/optimise-images
    

    I can alternate between these 3 directories in directory list using
    Code (Text):
    pushd +1
    

    list directories in memory
    Code (Text):
    dirs
    

    Code (Text):
    dirs
    /home/nginx/domains/domain.com/public/images /usr/local/src/centminmod ~/tools/optimise-images
    
     
    Last edited: Apr 24, 2017
  3. Jimmy

    Jimmy Well-Known Member

    1,778
    388
    83
    Oct 24, 2015
    East Coast USA
    Ratings:
    +987
    Local Time:
    9:09 AM
    Ok. Wasn't sure, figured I'd post it.