This post did not contain any content.
-
This post did not contain any content.
@ari@fedi.arimelody.space many such cases
-
This post did not contain any content.@ari leaked neofetch source code
-
This post did not contain any content.
i do not like bash because:
- string arrays
- error handling
- pipes -
This post did not contain any content.
-
This post did not contain any content.
@ari honestly ill take a simple bash script over equivelant python script any day
-
@arctic i complain about hitler and you recommend me stalin /lh
-
@ari honestly ill take a simple bash script over equivelant python script any day
@OwOday problem: this bash is not simple
-
@OwOday problem: this bash is not simple
-
@OwOday to be clear: the python for this would be simple, but unfortunately bash cannot seem to fathom putting strings with spaces in an array together, because arrays themselves are just strings with spaces between them
-
@OwOday to be clear: the python for this would be simple, but unfortunately bash cannot seem to fathom putting strings with spaces in an array together, because arrays themselves are just strings with spaces between them
@ari@fedi.arimelody.space @OwOday@social.seattle.wa.us Have you considered base64-encoding or URL-encoding the elements of the array?
-
This post did not contain any content.
@ari now that uv has inline script dependencies, I just use python for everything since I can just run it and still use whatever packages I want without needing to setup a venv
-
i do not like bash because:
- string arrays
- error handling
- pipes@ari pipes are both incredibly useful for certain specific tasks, and absolutely awful for other tasks
-
@arctic i complain about hitler and you recommend me stalin /lh
@ari if you squint and stand 20 feet away it looks just like Go -
@OwOday to be clear: the python for this would be simple, but unfortunately bash cannot seem to fathom putting strings with spaces in an array together, because arrays themselves are just strings with spaces between them
@ari does
ARRAY=("stuff here"
"stuff 2 here"
"stuff 3 here")not work?
Sorry if misunderstanding -
This post did not contain any content.
@ari i have never understood people who write actual programs in shell. there are SO many better languages
-
This post did not contain any content.
@ari mood
-
@ari if you squint and stand 20 feet away it looks just like Go
@arctic i would be surprised if any language microsoft designs doesn't just look like C#
-
@ari does
ARRAY=("stuff here"
"stuff 2 here"
"stuff 3 here")not work?
Sorry if misunderstanding@OwOday unfortunately not statically declaring- i'm pulling in filenames which have spaces in them, either from
findor a glob -
@ari i have never understood people who write actual programs in shell. there are SO many better languages
@AVincentInSpace a mix of convenience (99% chance if the user runs linux, they also run bash) and ease of deployment (don't have to ship binary executables, dealing with architecture, etc.)
-
@AVincentInSpace a mix of convenience (99% chance if the user runs linux, they also run bash) and ease of deployment (don't have to ship binary executables, dealing with architecture, etc.)
@AVincentInSpace as a specific example: the script i was going to write had to support my x86_64 linux system and my aarch64 macOS system
