My tags are Zsh and Command Line Tools
I don't know if either of those apply to what is happening to me.
I have a script which is all the files in my app, for each there's a code sign command in this script. I run the script, and what is happening, according to what it shows in Terminal, it is not finishing the first command, it is starting the second command in the path section of the first, first just cuts off and second begins right there, no return
So naturally it finds a syntax error in the text eventually, none of the commands are run, it just prints the text of the script to screen with the commands merged as I said.
If I copy the commands out of the script one by one and run them in Terminal they run each just fine.
I did chmod 777 Path on the script file. I was told I have to do that to make it able to be run in Termimal.
Those all there is to this. I can't run a perfectly fine script. It checks out in Text and Pages, show invisibles, there are none that are not meant to be there, only spaces and a return at the end of each command.
Why would commands that work singly, not work in a script that is being run simply by dragging it to terminal, the path is typed, the hit return
I am new to this area, I program in a high level language, I only know it, I don't know what most coders know about Terminal and things like privileges, and many things. I only know Omnis.
Thank you.
Das Goravani