I was reading the doc of Ruby’s system method here. If I put in the option -P /public/google (specifying the directory for downloading), does that count as one argument or two arguments, or either?
I was reading the doc of Ruby’s system method here . If I put
Share
It counts as two. Since there’s a space in between the two, the shell sees it and splits it as
-Pand/public/google(if you’ve worked with arguments, even in ruby, the shell would pass those in as separate arguments to the script).