0

I am working with some open-source code and I wanted to make sure I understand what they mean.

They run a command which goes like this:

python /some_directory/zipfile.zip "$@"

Two questions: I read about "$@", and I thi

  1. Does "$@" mean that all arguments which are passed, pass along to the python command?
  2. What does the python command run exactly in a zip file? I suspect that it runs a file called __main__.py inside the zip file. Is that true?

Thanks in advance!

1

1 Answer 1

0
  1. "$@" No, it does't pass along to the python command. $@ is special if written in double quotes. Then it will result in a list of quoted values, in your case, trusktr, in the three arguments "foo", "bar", and "boo far"

  2. yes, its only Runs file called main.py inside the zip file.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.