-bash : 응용 프로그램 / mvim : / bin / sh : 잘못된 해석기 : 작업이 허용되지 않습니다. passes all its

나는 이상한 오류가 발생하고있다. mvim 스크립트는 MacVim 인터페이스를 시작하기로되어 있습니다.

문제는 아래를 참조하십시오. /bin/sh 괜찮아. mvim 였다 chmod +x ‘기타, 다른 /bin/sh 스크립트는 잘 돌아갑니다 … 나는 여기서 잃어 버렸습니다.

jan@MacBook-Pro ~ $ file Applications/mvim
Applications/mvim: POSIX shell script text executable
jan@MacBook-Pro ~ $ head Applications/mvim
#!/bin/sh
#
# This shell script passes all its arguments to the binary inside the
# MacVim.app application bundle.  If you make links to this script as view,
# gvim, etc., then it will peek at the name used to call it and set options
# appropriately.
#
# Based on a script by Wout Mertens and suggestions from Laurent Bihanic.  This
# version is the fault of Benji Fisher, 16 May 2005 (with modifications by Nico
# Weber and Bjorn Winckler, Aug 13 2007).
jan@MacBook-Pro ~ $ chmod +x Applications/mvim
jan@MacBook-Pro ~ $ Applications/mvim
-bash: Applications/mvim: /bin/sh: bad interpreter: Operation not permitted

아래에서 볼 수 있습니다. /bin/sh 스크립트가 잘 돌아갑니다 …

jan@MacBook-Pro ~ $ vim test.sh
jan@MacBook-Pro ~ $ chmod +x test.sh
jan@MacBook-Pro ~ $ ./test.sh
hi
jan@MacBook-Pro ~ $ cat test.sh
#!/bin/sh

echo "hi"


답변

흠, OS X은 어떤 이유로 든 내 스크립트를 격리하는 것이 좋다고 생각하고 그것에 대해 말해주지 않습니다.

jan@MacBook-Pro ~ $ xattr -d com.apple.quarantine Applications/mvim

문제를 해결합니다.