At Tue, 21 Aug 2007 07:18:49 +0900,
Jano S. wrote in [ruby-talk:265570]:
found"
I suspect there is some subtlety in regard to the expansion of the “*”;
is there any way of making it work with system()?
I guess ‘*’ is handled by the shell. `` invokes the command via shell,
while system does it directly (and you have to expand * yourself).
To be accurate, system with multiple arguments bypasses shell,
while backticks and system with single string contains shell
metacharacters invokes a shell.
So, there are two possibilities:
invoke /bin/sh (or whatever shell are you using) with arguments to
call svn add…
expand it yourself (Dir.glob might be helpful)
use single string argument.
system(‘svn add --force *’)