Invoke non interactive shell from brew edit
Invoke non interactive shell from brew edit

Fixes Homebrew/homebrew#12779. Closes Homebrew/homebrew#12784.

utils.rb invokes bash as a non interactive shell to run the editor
when you run brew edit.

Non-interactive shells are not intended to capture user input and for running scripts. Whilst the invocation of the editor is a script the actual editor is intended for accept user input so this is an issue with brew and not emacs.

This causes issues with emacs which has different behaviors when not running under an interactive shell.

Signed-off-by: Max Howell <6ab8060e002788ba9309d53dba8df070e650cb04@me.com>
konqui/brew,bfontaine/brew,pseudocody/brew,JCount/brew,MikeMcQuaid/brew,reitermarkus/brew,palxex/brew,tonyg/homebrew,maxim-belkin/brew,Linuxbrew/brew,reelsense/brew,reitermarkus/brew,sjackman/homebrew,gregory-nisbet/brew,AnastasiaSulyagina/brew,toonetown/homebrew,palxex/brew,zmwangx/brew,claui/brew,claui/brew,JCount/brew,DomT4/brew,ilovezfs/brew,Homebrew/brew,amar-laksh/brew_sudo,mistydemeo/homebrew,Homebrew/brew,Homebrew/brew,gregory-nisbet/brew,gregory-nisbet/brew,maxim-belkin/brew,claui/brew,Linuxbrew/brew,sjackman/homebrew,jmsundar/brew,zmwangx/brew,hanxue/linuxbrew,reitermarkus/brew,reitermarkus/brew,bfontaine/brew,rwhogg/brew,toonetown/homebrew,MikeMcQuaid/brew,Homebrew/brew,konqui/brew,nandub/brew,MikeMcQuaid/brew,pseudocody/brew,zmwangx/brew,gordonmcshane/homebrew,konqui/brew,aw1621107/brew,vitorgalvao/brew,claui/brew,reelsense/brew,JCount/brew,rwhogg/brew,muellermartin/dist,aw1621107/brew,konqui/brew,mistydemeo/homebrew,bfontaine/brew,EricFromCanada/brew,alyssais/brew,pseudocody/brew,palxex/brew,vitorgalvao/brew,vitorgalvao/brew,mahori/brew,tonyg/homebrew,mgrimes/brew,staticfloat/brew,JCount/brew,aw1621107/brew,Linuxbrew/brew,amar-laksh/brew_sudo,rwhogg/brew,amar-laksh/brew_sudo,EricFromCanada/brew,sjackman/homebrew,maxim-belkin/brew,jmsundar/brew,nandub/brew,jmsundar/brew,alyssais/brew,AnastasiaSulyagina/brew,mahori/brew,hanxue/linuxbrew,staticfloat/brew,MikeMcQuaid/brew,DomT4/brew,muellermartin/dist,AnastasiaSulyagina/brew,gordonmcshane/homebrew,gordonmcshane/homebrew,Linuxbrew/brew,staticfloat/brew,DomT4/brew,EricFromCanada/brew,reelsense/brew,alyssais/brew,mahori/brew,DomT4/brew,mgrimes/brew,ilovezfs/brew,hanxue/linuxbrew,ilovezfs/brew,tonyg/homebrew,mgrimes/brew,vitorgalvao/brew,EricFromCanada/brew,nandub/brew,muellermartin/dist,mahori/brew,sjackman/homebrew,nandub/brew,mistydemeo/homebrew,toonetown/homebrew