Ticket #4605 (new enhancement)

Opened 6 weeks ago

Last modified 6 weeks ago

Do not override ENV variable for ash/dash subshell

Reported by: d3m3t3r Owned by:
Priority: minor Milestone: 4.8.33
Component: mc-core Version: master
Keywords: subshell ash dash Cc:
Blocked By: Blocking:
Branch state: no branch Votes for changeset:

Description

Do not override ENV variable (by ".profile") for ash/dash subshell if it is already set. Currently, mc would fallback to ".profile" file disregarding the existing value of ENV. ENV variable is used to set interactive shell rc-file for ash/dash (or POSIX shells in general). I believe fallback to ENV should be preferred and also consistent with behavior of bash subshell where mc fallbacks ri .bashrc.

Attachments

ash-honor-env-var.patch (543 bytes) - added by d3m3t3r 6 weeks ago.

Change History

Changed 6 weeks ago by d3m3t3r

comment:1 Changed 6 weeks ago by d3m3t3r

The patch is attached (also as Github PR https://github.com/MidnightCommander/mc/pull/210)

comment:2 Changed 6 weeks ago by d3m3t3r

  • Priority changed from major to minor
  • Keywords subshell ash dash added

comment:3 Changed 6 weeks ago by zaytsev

  • Milestone changed from Future Releases to 4.8.33
Note: See TracTickets for help on using tickets.