<<< Date Index >>>     <<< Thread Index >>>

Re: [Mutt] #3098: $SHELL differs from $0 in subshell



#3098: $SHELL differs from $0 in subshell
----------------------------+-----------------------------------------------
  Reporter:  schertz123456  |       Owner:  mutt-dev
      Type:  defect         |      Status:  new     
  Priority:  minor          |   Milestone:  1.6     
 Component:  mutt           |     Version:          
Resolution:                 |    Keywords:          
----------------------------+-----------------------------------------------

Comment(by brendan):

 It actually runs EXECSHELL sh -c '...', I believe. And I do think this is
 a bit strange. It would be fairly easy to make it do EXECSHELL $shell -c,
 in order to preserve EXECSHELL. On the other hand this would leave
 EXECSHELL in $0 and probably also affect the behaviour of shells that take
 cues from $0 (I believe zsh tries to emulate posix sh if $0 is /bin/sh).
 Forgive a naive question, but why do we not allow $shell to override
 EXECSHELL in general?

-- 
Ticket URL: <http://dev.mutt.org/trac/ticket/3098#comment:3>
Mutt <http://www.mutt.org/>
The Mutt mail user agent