will be helpful for those in need Your problem is that you're wanting space to be a part of an argument taken from variable, but to separate arguments coming from another argument. Tcl by default will try to apply the same uniform rules to all arguments: you need to do something extra to change that. You want to use expansion of an argument. Your command
this one helps. We can assume that the whitespace will be escaped by \. Eveerything including the binary should be matched, excluding an optional list of arguments. For example: , This regex might help: ^(([^\s]|(\\ ))*)(?
'open' statement in Perl splits path having spaces - how to read a file with spaces in path?