मुझे mvim
स्क्रिप्ट के साथ एक अजीब त्रुटि मिल रही है जिसे मैकविम इंटरफ़ेस शुरू करना है।
मुद्दे के लिए नीचे देखें। /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"