id,summary,reporter,owner,description,type,status,priority,milestone,component,version,resolution,keywords,cc,blockedby,blocking,branch_state,votes 2340,"100% CPU and growing memory usage when enters directory ""foo [bar]"", hangs when exits",livibetter,,"If there is a directory name with square brackets, e.g. `foo [bar]` mc will consume entire CPU and continuously use more and more memory if enter such directory. In `htop`, it looks like {{{ /usr/bin/mc -X `- bash -rcfile .bashrc `- bash -rcfile .bashrc }}} The last one process is the one consumes CPU and memory. Normally, it should have one `bash`. Somehow, it is spawned when enter that directory. If exits the directory to upper directory, mc will hang. Killing that bash can resolve the hangup. If run `mc --nosubshell`, the problem won't show. {{{ $ mc --version GNU Midnight Commander 4.7.0.3 Virtual File System: tarfs, extfs, cpiofs, ftpfs, fish, undelfs With builtin Editor Using system-installed S-Lang library with terminfo database With subshell support as default With support for background operations With mouse support on xterm and Linux console With support for X11 events With internationalization support With multiple codepages support Data types: char 8 int 32 long 64 void * 64 off_t 64 ecs_char 8 $ bash --version GNU bash, version 4.0.37(2)-release (x86_64-pc-linux-gnu) }}}",defect,closed,major,4.7,mc-core,4.7.0.3,invalid,,,,,,