3 ms·
Because space is not just another character. Space separates args.
by j-kidd 14y ago
Because space is not just another character. Space separates args.
- ygra 14y agoBut an installer talking to the operating system shouldn't need to separate arguments anywhere.
- laumars 14y agoWhich is why escape characters and quotations were invented
- pjmlp 14y agowhich is why most arguments tend to have a way to be recognized like -, -- or /
- lotyrin 14y agoThose are how one differentiates flags from arguments, which is a separate problem.
- pjmlp 14y agoKind of. If your flag is for a path, you can assume everything up to the next flag is a path name. myprog -filename here is my path with spaces -another_flag Of course this depends on how the shell gives the arguments to the program. On the other hand, there is no excuse why some GUI programs cannot handle spaces.
- lotyrin 14y agocp path1 path2 So, that's just one file?
- jfb 14y agoIt is an abject failing of software that perfectly reasonable characters are barred from filenames.