[bug #18136] MC wont work with new bash-3.2 propeply with all directories.

Leonard den Ottolander leonard at den.ottolander.nl
Sat Oct 28 13:44:31 UTC 2006


Hi,

On Sat, 2006-10-28 at 15:30 +0200, Leonard den Ottolander wrote:
> Anyway, instead of testing for bash >= 3.2 inside the bash loop we can
> suffice by adding a version check for bash < 2.05b to the shell type
> test.

A quick and dirty hack for users of bash >= 3.2 would be to just get rid
of the subshell_type == BASH test and block, and use the default block. 

If we only escape alphas and not numbers in the default block this hack
should be safe for all users of bash > 2.05b as explained in the
previous mail.

Attached patch implements this. This is not a proposition for a final
solution, just a temporary hack for users of bash >= 3.2.

Do not use with versions of bash <= 2.05b!

Leonard.

-- 
mount -t life -o ro /dev/dna /genetic/research

-------------- next part --------------
A non-text attachment was scrubbed...
Name: subshell.c.diff
Type: text/x-patch
Size: 915 bytes
Desc: not available
URL: <http://lists.midnight-commander.org/pipermail/mc-devel/attachments/20061028/4182519b/attachment.bin>


More information about the mc-devel mailing list