[a / b / c / d / e / f / g / gif / h / hr / k / m / o / p / s / t / u / v / vg / vm / vmg / vr / vrpg / vst / w / wg] [i / ic] [r9k / s4s / vip] [cm / hm / lgbt / y] [3 / aco / adv / an / bant / biz / cgl / ck / co / diy / fa / fit / gd / hc / his / int / jp / lit / mlp / mu / n / news / out / po / pol / pw / qst / sci / soc / sp / tg / toy / trv / tv / vp / vt / wsg / wsr / x / xs] [Settings] [Search] [Mobile] [Home]
Board
▼ Settings Mobile Home
/g/ - Technology


Thread archived.
You cannot reply anymore.


[Advertise on 4chan]


File: bash.png (43 KB, 3000x2000)
43 KB PNG
>ABC="abc"
>works

>ABC = "abc"
>ABC executable doesn't exist

How do linuxtards put up with this shit for decades? It's just tip of the iceberg.
>>
File: 1763703307606601.png (76 KB, 622x622)
76 KB PNG
>>
>>110128449
>Bash
Am I supposed to help you or something? All I can do is laugh at you.
>>
File: .png (23 KB, 276x202)
23 KB PNG
why do Linuxtards put up with such a primitive caveman cobbled together piece of shit called bash? even Windows has a better alternative to its cmd.exe legacy shit
>>
>>110128551
cmd is cancer too just a different kind of cancer
>>
>>110128560
yeah i agree thats why i showed powershell, which is a real scripting language in its own right
cmd and bash are just piles of badly thought out extensions on top of some 1980s (and in bash's case, 1960s) slopware
>>
>>110128551
>using PowerShell outside of scripts
Well?
>>
>>110128449
Imagine at $JOB some fucking retard though it a genius idea to refactor a cherry-picking script written in bash into a whole fucking multi-command CLI written in bash, complete with a bespoke autocomplete framework, just to avoid Python because it's le bad dependency management.

I fucking despise Python and would have taken it over that bash abomination.
>>
>>110128570
what?
people think that using powershell outside of scripts is too annoying because the command names are too long but in reality you can just use the default aliases for commands, or invent your own aliases
instead of Get-Content file.txt | Select-String blah you can just do gc file.txt | sls blah or better, sls -path file.txt blah
>>
>>110128607
PowerShell shits and pisses itself from a fucking ampersand, which just so happens to be pretty fucking common in URLs
>>
>>110128640
yeah, so quote it.
bash shits itself from & as well, you know.
>>
>>110128449
it's so shit holy fuck
>>
>>110128449
What if I had a command called ABC and I want to pass = and "abc" as arguments to it?
>>
>>110128727
ABC "=" "abc"

checkmate.
>>
>>110128449
man i am so glad we have ASI now so i never have to look at bash or its god awful syntax again
>>110128551
there are a billion linux shells for linux that are ment to fix bash

nobody is using them because nobody wants to be the one guy using nushell or whatever
>>
>>110128910
>nobody is using them because nobody wants to be the one guy using nushell or whatever
ah yes, the OS of freedom and choice - but you can't actually use good software because all the other retards are stuck on antiquated crap from the 1960s
powershell is standard on windows and comes pre-installed so it is the universal best choice for quick scripts
why don't Linux devs settle on a better shell and agree to pre-install it on all distros to fix this problem?
>>
>>110128996
it goes beyond linux. macos uses bash from 15+ years ago with all it's quirks and some version of zsh.
and utilities on different systems are either gnu, some bsd, busybox, the canonical ubango gnu rust rewrite..

the only baseline is posix. that is the most portable scripting language.
>>
>>110129092
and openbsd and things that use busybox don't use bash. have to explicitly install it.
>>
>>110129098
and android uses something similar but different than busybox (due to non-free loicensing)
>>
>>110129092
>the only baseline is posix. that is the most portable scripting language.
and it doesn't work on windows (80% of computers) without you bringing a separate .exe to interpret it
javascript is the most portable scripting language, or powershell if you want a "real" language that has access to the PC
>>
>>110129108
windows computers are basically for ipad users
so it doesn't matter

windows does not come with command line javascript runtime like node either (maybe it does these days with all the webshittification)

on windows you can install nix shell too in different flavors (cygwin, wsl, msys2, git bash), same way you would install python or node, but it's not stock standard
>>
>>110129126
>it doesn't count because it just doesn't okay
lol
>windows does not come with command line javascript runtime
command line or not command line is irrelevant, it comes with a browser that can run javashit, as does linux android and mac
>>
>>110129143
you can try to use microsoft google chrome edge as a web server or system automation tool if you want
>>
>>110128449
just use xonsh
>>
>>110128910
>nobody is using them because nobody wants to be the one guy using nushell or whatever

your interactive shell can be whatever you want, zsh, fish, powershell, zoomershell, whatever. changing it doesn't break things.
that is why zsh with all it's bells and whistles and plugins is so common and it is not fully bash/posix compatible either.

the non-interactive shell, the one operating system, ci, servers etc need to align with other systems, unless you have severe autism and will rewrite all build and system service scripts in your nu-shell.
>>
>>110128449
you got filtered. you just have to learn the language in an earnest way. ABC="abc" is assingment while the other form isn't. is it tyrannical? yes. is it better than most other languages? given that's it's heavily inspired by algol, yes. it's lisp > python > algol > C > others in terms of syntax.
>>
>>110128910
>>110128996
You can just use zsh while also having bash. Why do you care what everyone else uses. There's thr shebang to automatically use the intended shrll a script was written for, so you don't have to care if others write their scripts in bash as long as they work.

This is like complaining that others use some other GUI framework to develop THEIR software and somehow that forces (YOU) to use that framework to develop YOUR software, even though both will run natively on your platform. You have a choice, (You) are just too retarded to see it.
>But nobody else will be able to run my script
Yes they will, just tell them to install zsh the same way a lot of other programs have dependencies. What a nothingburger fucking complaint.
>>
>>110128449
>tcsh
set abc = abc
echo $abc

>tcl
set abc "abc"
echo $abc

>fish
set abc "abc"
echo $abc
>>
>>110129786
*set abc = "abc"



[Advertise on 4chan]

Delete Post: [File Only] Style:
[Disable Mobile View / Use Desktop Site]

[Enable Mobile View / Use Mobile Site]

All trademarks and copyrights on this page are owned by their respective parties. Images uploaded are the responsibility of the Poster. Comments are owned by the Poster.