Our server costs ~$56 per month to run. Please consider donating or becoming a Patron to help keep the site running. Help us gain new members by following us on Twitter and liking our page on Facebook!
Current time: November 15, 2024, 5:36 am
Thread Rating:
Writing scripts for UNIX-like operating systems
|
I barely managed to get the NodeJS version check to work on Git Bash on Windows. Before NodeJS outputted the error message "stdout is not a tty" instead of outputting the version number. Here is what the shell script to use the AEC-to-WebAssembly compiler looks like now:
Code: if [ $(command -v git > /dev/null 2>&1 ; echo $?) -eq 0 ]
I have modified the shell script to compile Analog Clock for x86, so that it might be able to run on Windows. Here is what it looks like now:
Code: mkdir ArithmeticExpressionCompiler
Well, I guess the shell scripts are good enough to be added to READMEs (https://github.com/FlatAssembler/Arithme...ler#readme https://github.com/FlatAssembler/AECforW...ell-script), Arithmetic Expression Compiler web-page (https://flatassembler.github.io/compiler.html) and the Analog Clock example on the web (https://flatassembler.github.io/analogClock). Now they are difficult to change.
RE: Writing scripts for UNIX-like operating systems
January 19, 2023 at 4:00 pm
(This post was last modified: January 19, 2023 at 4:23 pm by BrianSoddingBoru4.)
Writing shell scripts has left a very bad impression on me. I have written two short scripts, and I have had to ask no less than three StackOverflow questions (Fortunately, none of them reduced my reputation, and one of them received two upvotes.). One would think that checking whether a program with some name is available is one of the most common things one would like to do in a shell script. Nonetheless, doing that is very complicated. And two times in two short scripts, I had to rely on truly mysterious fixes. I've written a rant about it on my blog:
Administrator Notice
Removed blog rant, per Rule 1, bullet point 3. Do NOT do this again. Boru
So, is it just me, or is shell scripting one of the most frustrating kinds of programming, way more frustrating than front-end development?
(January 21, 2023 at 2:26 pm)FlatAssembler Wrote: So, is it just me, or is shell scripting one of the most frustrating kinds of programming, way more frustrating than front-end development? People are generally frustrated by things they’re not good at. Boru
‘I can’t be having with this.’ - Esmeralda Weatherwax
(January 21, 2023 at 3:13 pm)BrianSoddingBoru4 Wrote:I don't remember being nearly as frustrated when making my PacMan in JavaScript or my website. Sure, I ran into a problem that "clientWidth" and "clientHeight" didn't work on SVG elements in Firefox, but I immediately thought of a simple work-around.(January 21, 2023 at 2:26 pm)FlatAssembler Wrote: So, is it just me, or is shell scripting one of the most frustrating kinds of programming, way more frustrating than front-end development? |
« Next Oldest | Next Newest »
|
Possibly Related Threads... | |||||
Thread | Author | Replies | Views | Last Post | |
License for operating social media | Fake Messiah | 2 | 865 |
December 16, 2022 at 10:41 pm Last Post: Rev. Rye |
|
TempleOS: a Christian Operating System | Rev. Rye | 5 | 1473 |
December 23, 2018 at 12:32 pm Last Post: Rev. Rye |
|
Operating systems Wars! | Sterben | 60 | 6120 |
March 14, 2017 at 8:49 pm Last Post: Sterben |
|
Using SSDs for dual boot systems | emjay | 9 | 1816 |
November 8, 2016 at 7:33 pm Last Post: emjay |
Users browsing this thread: 1 Guest(s)