5 ms·
I don't think windows comes with python installation.
by onecooldev24 10y ago
I don't think windows comes with python installation.
- Jach 10y agoIt also doesn't come with any of the tools bash is a glue for, about the only reason one uses bash. At least with Python I can write my own grep and so on, and piping isn't so bad with coroutines and generators.
- scott_s 10y agoI think you missed the point of this language. You write code in this language, and then you compile it to get Bash for Linux and Batch for Windows.
- Jach 10y agoI get it, I just disagree with "it's not bundled" as a major disadvantage: neither is your script, and maybe neither is your argument to any `call()`, so you're going to be thinking about deployment in any case.
- catmanjan 10y agoCould be a great tool for government/enterprise customers who want to avoid the whitelisting process involved around getting anything installed. IT departments would laugh at you if you said you wanted to install python on their server...
- Jach 10y agoSure, there are probably use cases, though I'm biased to think there are better options for any specific one except perhaps the project creator's inspiring situation. IT can laugh, I laugh back when java/flash/excel/browsers are already installed.
- milcron 10y agoWindows has knock-off versions of several unix tools: grep = findstr cat = type which = where sort = sort more = more sudo = runas
- twic 10y agoBatsh already has some built-in functions which are, i assume, implemented on top of equivalent commands on either platform - for example, readdir() is implemented on top of either ls or dir. It seems plausible that more could be implemented on top of other pairs like these - for example, a searchfile() on top of grep and findstr, impersonate() on top of sudo and runas, etc. Perhaps what it really needs is an extension mechanism to make it easier to define such functions.
- douche 10y agoAt least PowerShell has an ls alias for dir...
- ComodoHacker 10y agoAnd no less! I didn't know about where, being Windows "native". Thank you.
- taco_emoji 10y agoIt also doesn't come with this "batsh" language...
- mod 10y agoYou don't distribute the batsh language. You distribute what you build with it.