Full-Blown Cross-Assembler…in A Bash Script

Have you ever dreamed of making a bash script that assembles Intel 8080 machine code? [Chris Smith] did exactly that when he created xa.sh, a cross-assembler written entirely in Bourne shell script…

Hackaday
Por ter parado de funcionar numa nova instalação, revisitei um script datado de 2023 que serve-me para iniciar um programa sob determinadas condições, chamado pelo ~/.profile. Vejo umas barbaridades cometidas que devo refatorar, mas também reflito que, felizmente, evoluí um pouquinho em questão de  nesse relativamente curto espaço de tempo... 

Por muitos anos, confesso que esquivei-me de estudar o assunto, mas digo, hoje, que algum conhecimento de Shell, como, por exemplo, definido por POSIX, é importante para aproveitar muito melhor o poder que sistemas operacionais semelhantes a Unix, como o #GNU, têm a oferecer. Recomendo.

#Shell #BourneShell #POSIX
Shell & Utilities: Table of contents

Live a whole century, keep learning for a whole century, the Russians say.
Today I Learned™ how the Bourne-again shell catches bullets carefully
aimed at my foot.

I have a `bash' script, call it `baz', that post-processes text
produced by `foo-bar' (rest assured, though, that it remains within
all recognition).

Doing due diligence documentation-wise, I wanted to collect an example
of the end result into a comment in the same script.

So naive, I took myself for a ride:

$ foo-bar | baz | sed 's/^/### /' >> baz
bash: baz: Text file busy

(I expected that the shell would (try to) execute the appended lines,
so I commented them Just In Time. Running this with `strace' is left
as an exercise.)

PIPESTATUS was (0 141 1) and the output "softly and suddenly vanished away"...

--
"For the Snark was a Boojum, you see."

#BourneAgainShell
#BourneShell
#ComputerProgramming
#Hunting
#LewisCarrol
#Queen
#QuoteAbuse

If a public foss repo offers a foss setup.sh command line script which, step by step, performs the installation / usage steps the repo readme lists for use at the command line to set up/use the code, what trust measures would you insist upon before downloading and before running the setup.sh script at your local command line? Is there a better way of offering an helpful automated but trustworthy #Heredoc than a scary .sh ?

#ShellProgramming #git #security #codeberg #shellscript #bourneshell

I saw someone else do this, so I thought I should too ...

Languages I have used to write software for other people to use, in roughly chronological order: #BASIC #Z80assembler #Pascal #C #BCPL #MIPSassembler #LotusAmiproMacros 😃 #VisualBASIC #DataEase #SQL #Java #Javascript #Perl #BourneShell #bash #Postscript #Rust. It saddens me that I have never perpetrated #Forth or #Lisp for any other audience than myself. It doesn't sadden me that I have forgotten at least some of them due to lack of use.

@hl

Night of the Living #Sed

A Nightmare in #Elm Codebase

The Little #Pascal s

#BASIC Instinct

#Snobol Express [https://www.imdb.com/title/tt0069291/]

The #BourneShell Identity

The Man (Page) on #Eiffel 's (Numeric) Tower [https://www.imdb.com/title/tt0041628/]

#TCL Me

Next, #Goal Wins? [https://www.imdb.com/title/tt10767052/?ref_=fn_al_tt_2]

Single word:

Prolog [https://www.imdb.com/title/tt4955294/]

Shakespeare:

Much #Ada About Nothing
#MacLisp
#Asm : You Like It!
All Is Hell that Ends Abnormally
Love's Labour's ... #Lisp!

Erbschaft in Weiß (1972) ⭐ 6.3 | Comedy, Family

1h 33m | G

IMDb
Shell Script Best Practices — The Sharat's

This article is about a few quick thumb rules I use when writing shell scripts that I’ve come to appreciate over the years. Very opinionated....

After all these years as a Linux hobbyist... my personal finding of the year!   https://www.commandlinefu.com/commands/browse #linuxgeheimtipp #linuxtips #linux #shell #bourne_shell #bourneshell
All commands

A repository for the most elegant and useful UNIX commands. Great commands can be shared, discussed and voted on to provide a comprehensive resource for working from the command-line

Qué es ZSH y cómo utilizar sus temas y complementos - ochobitshacenunbyte

Hablamos de la shell ZSH, sus principales características y sus diferencias frente a Bash. Además aprendemos a configurarla, habilitamos temas y plugins.

ochobitshacenunbyte