Email or username:

Password:

Forgot your password?
Top-level
✧✦✶✷Catherine✷✶✦✧

@wyatt8740 @parzivalwolfram @jannem @dalias @unnick I don't care about Visual Studio but if your software requires bash I will rm the entire build system and redo it using something made by competent people

21 comments
Wyatt (🏳️‍⚧️♀?)

@whitequark @parzivalwolfram @jannem @dalias @unnick Your opinions are frankly wrong.
Windows is not for competent people which is why they treat it as second class
(sorry i'm done now)

ParzivalWolfram

@whitequark @wyatt8740 @jannem @dalias @unnick Bash extensions can be very helpful, but it is big and sometimes critically buggy, I do agree on those common points.

Wyatt (🏳️‍⚧️♀?) replied to ✧✦✶✷Catherine✷✶✦✧

@whitequark @parzivalwolfram @jannem @dalias @unnick gotta say i kind of wondered when you said 'only thing worse is cmd.exe'
Because that means you never used DOS

✧✦✶✷Catherine✷✶✦✧ replied to Wyatt

@wyatt8740 @parzivalwolfram @jannem @dalias @unnick I have, actually! I never tried to ship DOS batch files at scale though, because that scale did not exist yet

Pixel Doge replied to Wyatt

@wyatt8740 @whitequark @parzivalwolfram @jannem @dalias @unnick ...aaaand that's why some of us used 4DOS, before moving over to Unix-like systems soon after.

ParzivalWolfram replied to ✧✦✶✷Catherine✷✶✦✧

@whitequark @wyatt8740 @jannem @dalias @unnick

if you need a variable that has iterable characters, you have to do something to the tune of:

choice /t:=,1 /c=%1= R:\bat\str2.bat > %TEMP%\test.bat
%TEMP%\test.bat

where str2.bat is the script to actually process the iterable (in my case, it's up to three splits in a string, and it's 1.2KB.)

this relies on error logic in choice to accomplish this, and needs tweaking for the version of DOS it's running on (this precise line only works on MS-DOS 6+ or equal IBM-DOS, and I don't think DR-DOS needs this at all, since it has some string comprehension extensions iirc)

@whitequark @wyatt8740 @jannem @dalias @unnick

if you need a variable that has iterable characters, you have to do something to the tune of:

choice /t:=,1 /c=%1= R:\bat\str2.bat > %TEMP%\test.bat
%TEMP%\test.bat

where str2.bat is the script to actually process the iterable (in my case, it's up to three splits in a string, and it's 1.2KB.)

Amber replied to Wyatt

@wyatt8740@tech.lgbt @whitequark@mastodon.social @parzivalwolfram@infosec.exchange @jannem@fosstodon.org @dalias@hachyderm.io @unnick@wetdry.world Honestly both of them are horrendous https://www.youtube.com/watch?v=uE8IAxM_BhE (and the follow up to how to secure against such attacks - https://www.youtube.com/watch?v=x97ejtv56xw) but what really got me was the finale https://www.youtube.com/watch?v=mej5L9PE1fs I hate cmd.exe and powershell.exe they are the antichrist and i am not joking.

ParzivalWolfram replied to ✧✦✶✷Catherine✷✶✦✧

@whitequark @wyatt8740 @jannem @dalias @unnick i've done some DOS slinging, it's even worse without the extensions from the NT era. splitting a string is a 3-batch-file job totalling... 2104 bytes, for a maximum of 3 splits on one character, more if you need more than that, and there's no way to do it programmatically up to n splits unless you hardcode support up to that number.

Rich Felker

@whitequark @wyatt8740 @parzivalwolfram @jannem @unnick Not bash just a POSIX shell, which only needs fork if you're bad at implementing it and code like it's 1970... 😁

Wyatt (🏳️‍⚧️♀?) replied to Rich

@dalias @whitequark @parzivalwolfram @jannem @unnick Hi, I program like it's 1970.

Not really, more like 1989

Go Up