3 ms·
start uses the first quoted argument as the window title and with your example the actual argument is missing, hence you get a new console window.
by ygra 6y ago
start uses the first quoted argument as the window title and with your example the actual argument is missing, hence you get a new console window.
- pjc50 6y agoAaargh. I always forget that while UNIX strips one layer of quotes from arguments, DOS and its inheritors have no parsing and just pass the whole thing through. So you can have semantically meaningful quotes.
- mkl 6y agoSpeaking of weird Windows/Unix quoting complexities, the following makes a WSL equivalent of cmd's start: alias start="cmd.exe /c start '' ${@//&/^&}" I don't remember where I found the details, but they're not of my invention. This may have some strange edge case failures, but works pretty well in my experience, including with spaces in filenames, but only for Windows folders, not WSL-specific ones (cmd.exe barfs, but maybe it would be possible with PowerShell).