#BourneShell

2025-12-01
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 :shell: nesse relativamente curto espaço de tempo... :harold:

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
Vassil Nikolov | Васил Николовvnikolov@ieji.de
2025-11-05

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

2025-09-05

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

David Cantrell 🏏DrHyde@fosstodon.org
2024-05-01

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.

2023-07-23

@hl

Night of the Living #Sed

A Nightmare in #Elm Codebase

The Little #Pascal s

#BASIC Instinct

#Snobol Express [imdb.com/title/tt0069291/]

The #BourneShell Identity

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

#TCL Me

Next, #Goal Wins? [imdb.com/title/tt10767052/?ref]

Single word:

Prolog [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!

रञ्जित (Ranjit Mathew)rmathew
2022-10-28
BenjaminWrdlbrnft
2022-08-05

After all these years as a Linux hobbyist... my personal finding of the year! :blobwizard: commandlinefu.com/commands/bro

Client Info

Server: https://mastodon.social
Version: 2025.07
Repository: https://github.com/cyevgeniy/lmst