Opened 7 years ago

Last modified 7 years ago

#54670 assigned defect

MacVim @8.0.snapshot136: Improve error report for MacVim mvim script for a bad link

Reported by: decibel (Jim Nasby) Owned by: raimue (Rainer Müller)
Priority: Normal Milestone:
Component: ports Version:
Keywords: upstream Cc:
Port: MacVim

Description (last modified by ryandesign (Ryan Carsten Schmidt))

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

Change History (2)

comment:1 Changed 7 years ago by ryandesign (Ryan Carsten Schmidt)

Description: modified (diff)
Owner: set to raimue
Port: MacVim added
Status: newassigned
Summary: Improve error report for MacVim mvim script for a bad linkMacVim @8.0.snapshot136: Improve error report for MacVim mvim script for a bad link

comment:2 Changed 7 years ago by raimue (Rainer Müller)

Keywords: upstream added

As the MacVim port merely distributes the mvim script from upstream, I would kindly ask you to file an issue/pull request with upstream to get this fixed.

Note: See TracTickets for help on using tickets.