Bug 113996

Summary: misc/mc: Midnight Commander cannot cd into directories with underscores using latest bash shell
Product: Ports & Packages Reporter: Ighighi <ighighi>
Component: Individual Port(s)Assignee: Max Khon <fjoe>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: Latest   
Hardware: Any   
OS: Any   

Description Ighighi 2007-06-24 19:30:08 UTC
The recently added bash shell (version 3.2.17) prevents Midnight Commander
(available in misc/mc) from changing to directories with underscores.


This is an issue with other OS'es as well... See:

How-To-Repeat: When in mc(1), try to cd to any directory containing an underscore.  A message like this will appear:
Warning: Cannot change to /home/ighighi/amsn_received.

Running "mc -u" (--nosubshell) or using a different shell like zsh or the older 3.1.17 is Ok.
Comment 1 Edwin Groothuis freebsd_committer 2007-06-24 19:30:16 UTC
Responsible Changed
From-To: freebsd-ports-bugs->fjoe

Over to maintainer
Comment 2 dfilter service freebsd_committer 2007-07-18 04:59:47 UTC
fjoe        2007-07-18 03:59:42 UTC

  FreeBSD ports repository

  Modified files:
    misc/mc              Makefile 
    misc/mc/files        patch-src-subshell.c 
  Use the `printf' utility instead of `echo' to quote the directory name.
  This fixes changing directories when shell is bash >= 3.2.
  PR:             113996
  Obtained from:  Midnight Commander CVS
  Revision  Changes    Path
  1.111     +1 -1      ports/misc/mc/Makefile
  1.4       +99 -0     ports/misc/mc/files/patch-src-subshell.c
cvs-all@freebsd.org mailing list
To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"
Comment 3 Max Khon freebsd_committer 2007-07-25 20:52:25 UTC
State Changed
From-To: open->closed

Vendor fix committed.