Opened 7 years ago

Last modified 7 years ago

#54670 assigned defect

Improve error report for MacVim mvim script for a bad link — at Initial Version

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

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

Change History (0)

Note: See TracTickets for help on using tickets.