In computing, "batch" connotes long running processes in addition to "script"'s connotation of collapsing multiple commands into a single one. The seemingly redundant parsing by the Batch interpreter is a feature, not a bug. 1. The parser allows modifying a .bat file during its execution and having those changes execute without restarting the Batch interperter. [1] This is in keeping with the rationale for batch proc…
How bad is the Windows command line really?
21–30 of 110 posts
Re: How bad is the Windows command line really?
#22Re: How bad is the Windows command line really?
#23Agree about Windows command prompt being lame compared to bash, but I really find PowerShell amazing, even more so then bash. If you look at all the recent (even not so recent) products from MS, it is clear that PowerShell is the shell for Windows, and not batch. I didn't get the cure for polio analogy that's in the article but I really think anyone that's comparing shells should compare with PowerShell.
http://steve-yegge.blogspot.ca/2006/03/execution-in-kingdom-...
I don't deny that it is much more powerful than cmd, but it feels a lot like "emacs rather than vi" in its design, and I much prefer the latter (which would be more (ba)sh-like.)
Re: How bad is the Windows command line really?
#24Re: How bad is the Windows command line really?
#25In computing, "batch" connotes long running processes in addition to "script"'s connotation of collapsing multiple commands into a single one. The seemingly redundant parsing by the Batch interpreter is a feature, not a bug. 1. The parser allows modifying a .bat file during its execution and having those changes execute without restarting the Batch interperter. [1] This is in keeping with the rationale for batch proc…
But bash was around in the 80's, too, right? And it didn't seem to need those features. How did bash users get around your claimed need for this?
Batch was restricted by DOS, I wish I had never learned it, but it did come in handy for launching games.
Re: How bad is the Windows command line really?
#26There are, of course, choices beyond Bash, Batch and PowerShell. I'm a Microsoft fanboy and I find Python far more structured and faster than any of the above for anything beyond the most simple shell scripts. (If only the inventor of PowerShell had spent ten minutes outside the Microsoft ecosystem before locking himself in a seafoam green office for two years...) Doesn't solve the IT admin scenarios PowerShell is go…
Re: How bad is the Windows command line really?
#27In computing, "batch" connotes long running processes in addition to "script"'s connotation of collapsing multiple commands into a single one. The seemingly redundant parsing by the Batch interpreter is a feature, not a bug. 1. The parser allows modifying a .bat file during its execution and having those changes execute without restarting the Batch interperter. [1] This is in keeping with the rationale for batch proc…
But bash was around in the 80's, too, right? And it didn't seem to need those features. How did bash users get around your claimed need for this?
http://www.os2museum.com/wp/dos/dos-1-0-and-1-1/dos-1-0-dir/
Re: How bad is the Windows command line really?
#28This isn't completely related to Windows command line but I thought I would post it out here. I was trying to run a Bash script from a Git repo mounted in a Docker container. When running the Bash script, I kept getting all kinds of errors. I ran the exact same script in the same Docker container on a different Linux computer that had cloned the repo. It turns out the \r Windows line endings (which I later normalized…
You can also normalize them using the dos2unix package, which is available on most distros.
Though honestly, Windows just doesn't even matter any more to me, I haven't needed to touch an MS product in years...
Re: How bad is the Windows command line really?
#29Unreadable on mobile
Re: How bad is the Windows command line really?
#30In computing, "batch" connotes long running processes in addition to "script"'s connotation of collapsing multiple commands into a single one. The seemingly redundant parsing by the Batch interpreter is a feature, not a bug. 1. The parser allows modifying a .bat file during its execution and having those changes execute without restarting the Batch interperter. [1] This is in keeping with the rationale for batch proc…
But bash was around in the 80's, too, right? And it didn't seem to need those features. How did bash users get around your claimed need for this?