Hacker News new | ask | show | jobs
by ygra 2197 days 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.
1 comments

Aaargh. 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.
Speaking 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).