Yahoo Answers is shutting down on May 4th, 2021 (Eastern Time) and beginning April 20th, 2021 (Eastern Time) the Yahoo Answers website will be in read-only mode. There will be no changes to other Yahoo properties or services, or your Yahoo account. You can find more information about the Yahoo Answers shutdown and how to download your data on this help page.
Trending News
Mac terminal command syntax?
I need to go to Mac Terminal to get something done. The command refers to an application file name that includes both a space and a decimal. The app file name is
FireCapture v2.6.app
My Unix experience has a lot of dust on it. I can make the command succeed if I simply rename the app to FireCapture, but I would prefer to keep the version information. Will wrapping the app name in quotes work like this?
command "FireCapture v2.6.app"
Is there a better way to do this?
I should have said "I can make the command succeed if I simply rename the app to FireCapture.app ..."
I forgot to mention that I'm using zsh
2 Answers
- Anonymous3 years agoFavorite Answer
Yes, if the filename has spaces in it, you need to enclose it in double quotes (").
Unless you're logged in using an admin account, you do need to use sudo.
- dogsafireLv 73 years ago
For some reason, Y! Answers won't let me update the question any more, so I'll add it here
Some more info and questions:
If quotes work, are they single or double quotes?
Here is what I am doing:
command: spctl --add ~/Desktop/FireCapture v2.6.app
response: invalid API object reference
When I issued the command with the file name changed to FireCapture.app, I issued the command as a
sudo spctl --add ~/Desktop/FireCapture.app
Do I actually need the sudo?
Because I'm messing with Gatekeeper, I'm hesitant to undo and redo my work to test various versions of the command. The program (FireCapture) is running and that's what really matters. I want to write up the procedure of getting the application to run for others in an astronomy group that I participate in, so I want to be clear about the proper shell command.