Join the community today
Register Now

[Solved] CMDIR Repeat

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

  1. Jimmy

    Jimmy Premium Member Premium Member

    1,026
    231
    63
    Oct 24, 2015
    East Coast USA
    Ratings:
    +555
    Local Time:
    9:30 AM
    1.13.x
    MariaDB 10.1.x
    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

    29,008
    6,580
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +9,770
    Local Time:
    11:30 PM
    Nginx 1.13.x
    MariaDB 5.5
    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 Premium Member Premium Member

    1,026
    231
    63
    Oct 24, 2015
    East Coast USA
    Ratings:
    +555
    Local Time:
    9:30 AM
    1.13.x
    MariaDB 10.1.x
    Ok. Wasn't sure, figured I'd post it.