[Thread Prev][Thread Next][Index]

Re: [ferret_users] whitespace within command-line arguments



 
 
Hi Ryo,
 
Escaping with a backslash works for me with V7.1
 
ferret -script tmp.jnl "hello" "a\ b\ c" "world"
1st--hello--
2nd--a b c--
3rd--world-
 
 
Cheers,
Russ
 
 
 
 
On 19/12/17 17:10, Ryo Furue wrote:
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]