[Thread Prev][Thread Next][Index]

[ferret_users] whitespace within command-line arguments



Dear ferret users,

I was wondering how to pass command line arguments that include blanks to a ferret script.

!--- Ferret script: tmp.jnl ----
say 1st--($1)--
say 2nd--($2)--
say 3rd--($3)--

#-- shell command line ----
$ /usr/local/ferret-7.3/bin/ferret_v7.3 -script tmp.jnl "hello" "a b c" "world"
1st--hello--
2nd--a--
3rd--b--
$

(How does ferret obtain the command line parameters? It seems to me to be harder to get the above result than to get "a b c" as a single string . . . )

Best regards,

Ryo

[Thread Prev][Thread Next][Index]
Contact Us
Dept of Commerce / NOAA / OAR / PMEL / Ferret

Privacy Policy | Disclaimer | Accessibility Statement