<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><meta http-equiv="Content-Type" content="text/html charset=utf-8" class=""><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><br class=""><div class=""><blockquote type="cite" class=""><div class="">On Apr 5, 2017, at 16:12, Rainer Müller <<a href="mailto:raimue@macports.org" class="">raimue@macports.org</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div class="">On 2017-04-05 21:54, db wrote:<br class=""><blockquote type="cite" class="">On 4 Apr 2017, at 11:21, db <<a href="mailto:iamsudo@gmail.com" class="">iamsudo@gmail.com</a>> wrote:<br class=""><blockquote type="cite" class="">On 4 Apr 2017, at 11:18, Rainer Müller <<a href="mailto:raimue@macports.org" class="">raimue@macports.org</a>> wrote:<br class=""><blockquote type="cite" class="">How did you test this? This works fine for me:<br class="">$ export MP_EDITOR=less<br class="">$ port edit zlib<br class=""></blockquote>export VISUAL=/opt/local/bin/vim     works<br class="">export MP_EDITOR=/opt/local/bin/vim  doesn't<br class=""></blockquote><br class="">Could you please try it with an editor?<br class=""></blockquote><br class="">It works for me. I cannot reproduce the problem you have.<br class=""><br class="">Rainer<br class=""></div></div></blockquote></div><br class=""><div class="">For me (MacOS 10.12.3, latest MacPorts, .profile as the relevant file to edit) </div><div class="">$ export MP_EDITOR=/usr/bin/nano</div><div class="">works.  However, following <a href="https://guide.macports.org/chunked/installing.shell.html" class="">https://guide.macports.org/chunked/installing.shell.html</a>, </div><div class="">$ export MP_EDITOR=/usr/bin/edit</div><div class="">to use TextWrangler (yes, I have it installed) fails with “<span style="font-family: Menlo; font-size: 11px; background-color: rgb(255, 255, 255);" class="">Error: unable to invoke editor /usr/bin/edit: couldn't execute "/usr/bin/edit": no such file or directory</span>”.  I tried </div><div class="">$ export MP_EDITOR=/Applications/TextWrangler.app</div><div class="">but that fails with “<span style="font-family: Menlo; font-size: 11px; background-color: rgb(255, 255, 255);" class="">Error: unable to invoke editor /Applications/TextWrangler.app: couldn't execute "/Applications/TextWrangler.app": permission denied</span>” when I do </div><div class="">$ port edit texlive-xetex </div><div class="">and puts me in vim if I prepend sudo to the command.  (Oh, never mind.  I forgot I had the app store version and never installed the command line tools. Now </div><div class="">$ export MP_EDITOR=/usr/local/bin/edit </div><div class="">(note the correction to <a href="https://guide.macports.org/chunked/installing.shell.html" class="">https://guide.macports.org/chunked/installing.shell.html</a>)</div><div class="">works.)  </div><div class=""><br class=""></div><div class="">I haven’t installed any editors through macports so I can’t check the /opt path, but at least stuff in /usr works as expected.  (And thanks to poking at this, I now know two things I didn’t know before I started down this rabbit hole.)</div><div class="">Lenore</div><div class=""><br class=""></div></div></body></html>