Ticket #3574 (new defect) — at Version 4

Opened 9 years ago

Last modified 9 years ago

MC_XDG_OPEN="/bin/false" doesn't work since 4.8.15

Reported by: asy Owned by:
Priority: major Milestone: 4.8.16
Component: mc-core Version: 4.8.15
Keywords: Cc:
Blocked By: Blocking:
Branch state: merged Votes for changeset:

Description (last modified by andrew_b) (diff)

The change

-    "${MC_XDG_OPEN}" "${MC_EXT_FILENAME}" 2>/dev/null || \
+    ("${MC_XDG_OPEN}" "${MC_EXT_FILENAME}" >/dev/null 2>&1 &) || \

is broke to start do_open_action "${filetype}"

Change History

comment:1 follow-up: ↓ 3 Changed 9 years ago by az_ua

Last "&" in "2>&1 &)" is useless.
My fix:

sed 's#&) ||#) ||#' -i /usr/lib/mc/ext.d/*.sh

I'm using busybox ash (and busybox sed).

comment:2 Changed 9 years ago by andrew_b

  • Summary changed from MC_XDG_OPEN="/bin/false" is not works since 4.8.15 to MC_XDG_OPEN="/bin/false" doesn't work since 4.8.15

comment:3 in reply to: ↑ 1 Changed 9 years ago by asy

Replying to az_ua:

sed 's#&) ||#) ||#' -i /usr/lib/mc/ext.d/*.sh

I'm using busybox ash (and busybox sed).


It works for GNU bash 3.2.54 also.

Last edited 9 years ago by asy (previous) (diff)

comment:4 Changed 9 years ago by andrew_b

  • Description modified (diff)
Note: See TracTickets for help on using tickets.