Ticket #4605 (new enhancement)
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
Change History
comment:1 Changed 4 weeks ago by d3m3t3r
The patch is attached (also as Github PR https://github.com/MidnightCommander/mc/pull/210)
Note: See
TracTickets for help on using
tickets.