You can make a difference in the Apple Support Community!

When you sign up with your Apple Account, you can provide valuable feedback to other community members by upvoting helpful replies and User Tips.

Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

Resolving bash shell issues

I am running Visual Studio Code, and when I tried to run an app in any programming language, it shows a code 127, that is, command not found. Also, I have run into errors such as access denied for any file name or folder.

I must get some help as soon as possible. So far, I have not gotten any help from any user, and I am thinking about going to download and use another integrated developer environment or IDE app or framework, such as Eclipse, or NetBeans just to program this in any language.


Unless I get some answers from any user on this forum, that's what I'm gonna do.

Mac mini, macOS 14.5

Posted on Jun 30, 2024 10:35 AM

Reply
4 replies

Jun 30, 2024 11:14 AM in response to JohnCTX

You're unlikely to get a direct answer since there are so many possible causes for this kind of problem, and you haven't given enough detail as to what does and does not work.


For what it's worth, VSC doesn't list bash as one of its supported languages, so it isn't clear whether you're using the right tool.

Additionally, even if you can write bash scripts in VSC, bash is almost infinitely configurable, so some of the problems may be related to your bash setup, of which we are completely unaware.


Often, many shell scripts often depend on environment variables such as $PATH (used to help the script find executables). If that's not set then you would have trouble executing commands unless you're using full paths to the executable itself (e.g. /usr/bin/mdfind rather than just mdfind). Given that $PATH accounts for a large number of shell scripting issues, I'm guessing this is related to your problem, but without more details of your setup and environment, it's impossible to tell.

Jun 30, 2024 6:12 PM in response to JohnCTX

JohnCTX wrote:

I must get some help as soon as possible. So far, I have not gotten any help from any user, and I am thinking about going to download and use another integrated developer environment or IDE app or framework, such as Eclipse, or NetBeans just to program this in any language.

Unless I get some answers from any user on this forum, that's what I'm gonna do.

That sounds like a good plan. For developing on Apple platforms, I strongly recommend Apple Xcode. Make sure to download it directly from the Developer site. Don't use the App Store - long story.

Resolving bash shell issues

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.