Yahoo Clever wird am 4. Mai 2021 (Eastern Time, Zeitzone US-Ostküste) eingestellt. Ab dem 20. April 2021 (Eastern Time) ist die Website von Yahoo Clever nur noch im reinen Lesemodus verfügbar. Andere Yahoo Produkte oder Dienste oder Ihr Yahoo Account sind von diesen Änderungen nicht betroffen. Auf dieser Hilfeseite finden Sie weitere Informationen zur Einstellung von Yahoo Clever und dazu, wie Sie Ihre Daten herunterladen.

dogsafire fragte in Computers & InternetSoftware · vor 3 Jahren

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?

Update:

I should have said "I can make the command succeed if I simply rename the app to FireCapture.app ..."

Update 2:

I forgot to mention that I'm using zsh

2 Antworten

Relevanz
  • Anonym
    vor 3 Jahren
    Beste Antwort

    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.

  • vor 3 Jahren

    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.

Haben Sie noch Fragen? Jetzt beantworten lassen.