[MacPorts] #54670: MacVim @8.0.snapshot136: Improve error report for MacVim mvim script for a bad link (was: Improve error report for MacVim mvim script for a bad link)

MacPorts noreply at macports.org
Sun Aug 27 22:56:35 UTC 2017


#54670: MacVim @8.0.snapshot136: Improve error report for MacVim mvim script for a
bad link
----------------------+----------------------
  Reporter:  decibel  |      Owner:  raimue
      Type:  defect   |     Status:  assigned
  Priority:  Normal   |  Milestone:
 Component:  ports    |    Version:
Resolution:           |   Keywords:
      Port:  MacVim   |
----------------------+----------------------
Changes (by ryandesign):

 * status:  new => assigned
 * owner:   => raimue
 * port:   => MacVim


Old description:

> If a symlink to the mvim script has the wrong permissions (sadly easy to
> do on OS X), it fails with some rather confusing error messages. The
> change below fixes this:
>
>     while [ -L "$self_path" ]; do
>         next_path=`readlink $self_path` || { echo "error $? reading link
> $self_path (are permissions on the link correct?)" 2>&1; exit 2; }
>         cd "`dirname $next_path`"
>         self_path=`basename $next_path`
>     done

New description:

 If a symlink to the mvim script has the wrong permissions (sadly easy to
 do on OS X), it fails with some rather confusing error messages. The
 change below fixes this:

 {{{
     while [ -L "$self_path" ]; do
         next_path=`readlink $self_path` || { echo "error $? reading link
 $self_path (are permissions on the link correct?)" 2>&1; exit 2; }
         cd "`dirname $next_path`"
         self_path=`basename $next_path`
     done
 }}}

--

--
Ticket URL: <https://trac.macports.org/ticket/54670#comment:1>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list