[platypus-dev] Using ARGV in a Bash Script

How would one use the ARGV array within a bas script?

I suspect I'm doing something wrong in a very basic way. But it would be my understanding that something like this:

echo "${ARGV[0]}"

Would return the first value in the ARGV array. Instead I get an empty space.

This brings me to something that could really be a boon to new people if it were in the documentation.

There isn't a real list of available variables that Platypus gives to a script. They are mentioned here and there. But they aren't consolidated anywhere. And worse they are only shown used in or two cases which can be very confusing. We don't need a use it like this in PHP, PERL, BASH, etc. But we could at least have a list of how the variable shows up in each of the major scripting languages.

Thanks beforehand for any help or pointers people can throw my way. I appreciate it. :)

Jamie
_______________________________________________________________________
Email: jamie@xxxxxxxxxxx
Homepage: http://www.methnen.com

"And I always go to pieces.  And I have it in my mind, that the sky is
tall and heavy, when I could be brave."
-Karen Peris (Brave)

"I want to find where the maid in the street is pouring her wine,
I heard she takes you in and gives you the words you need said.
If you'll be her brother, she'll kiss you like a sister.
She'll even be your mother, for now."
-Matt Slocum (Sister, Mother)

"And we are drowned."
-Annie Dillard (Tickets For a Prayer Wheel)
_______________________________________________________________________



Other related posts: