💾 Archived View for bbs.geminispace.org › s › bash captured on 2024-08-25 at 11:15:42. Gemini links have been rewritten to link to archived content

View Raw

More Information

⬅️ Previous capture (2024-08-25)

➡️ Next capture (2024-08-31)

-=-=-=-=-=-=-

s/bash

The venerable Bourne-Again Shell.

🕹️ Moderated by: skyjake

🌒 Subspaces

📖 Help

❤️ Code of conduct

Sign up

Posts

🚀 random2934

A mistake most bash beginners make — It's the array variable expantion. here is an example: x=( a b "c d" ); echo ${x[@]} in this example a beginner would thinkg that ${x[@]} would be expanded to 3 fields but no. It would be expanded into 4 field a,b,c,d . It's very confusing. however to prevent it we just quote the parameter expansion like "${x[@]}" and now it would only expand to 3 fields :) hope you learned something new.

💬 3 likes · Aug 21 · 4 days ago

👻 klimperfix

notesbash: A notes management TUI written in Bash — Hey there! notesbash, the note-taking program running in the terminal written in bash is about to have it first stable release. Before we release it, we would be happy to receive feedback and suggestions for improvement from anyone interested! Either here as a comment under this post or preferably as issues on Codeberg. notesbash started out as a fork of the filemanager fff. Features of notesbash as of version v0.6.3: - File management à la...

💬 3 comments · 4 likes · Jul 05 · 7 weeks ago

🚀 lanterm

Beginner tips for beautiful diffs? — I largely prefer command line tools, but when it comes to handling merge conflicts I find command line diff tools confusing (e.g. I'm in vimdiff and I've got these panes open - which is which?) and always end up either using a GUI git client like sublime merge to visualize the diff or dive into the file with conflicts and resolve them manually. Also, there are times when I wish to compare two files or strings. Sometimes I just make some dummy git activity to...

💬 5 comments · 1 like · Apr 23 · 4 months ago

☯️ leoperbo

About grep --exclude — Colud this grep option be problematic? [preformatted] I'd seen more expressions like: [preformatted] But they doesn't cover the "file.txt_bkp" posibility.

💬 1 comment · Feb 11 · 6 months ago · #grep

🐝 november [...]

— gemini.locrian.zone/tech/xivships.gmi

[SOLVED] Was: Can I get an extra pair of eyes on some code I wrote? — Edited: ~ew pointed out that there was a naming conflict in the temporary files generated by the geminispace script and the webspace script; they both outputted to a file called 'shuffle', and the webspace script ran before the geminispace script so on occasion there would be some mangling of the latter. This also explains why both...

💬 1 like · 2023-09-28 · 11 months ago

Options

🗣️ Sort by activity

🔥 Sort by hotness

Gemini feed

Atom feed