rycee

u/rycee@lemmy.world
2 posts · 90 comments

Recent posts

Recent comments

It might be excessive for your purposes but an alternative may be to use zoxide. It learns the directories you use regularly and you can then cd to those directories through the z command. E.g. z docs.

Per the article, there must be replacement batteries available for at least five years after the end of the product being available on the market. I don't think it would make much sense to keep tonnes of batteries in storage for so long. Presumably battery manufacturing would therefore have to continue over time. Maybe device manufacturers will try to share battery designs across device models so they don't need so many manufacturing lines?

Would be great if it means that I could swap out my device's battery after a few years and the new battery takes advantage of the improvements over that time.

Visiting the Gaudi houses in Barcelona is just amazing. Not just the architecture but also details like the furniture, doors, and even cupboard handles are fascinating. Definitely recommended but try going outside the main tourist season!

on [GUIDANCE] "For" in Bash · c/linux · 6 pts · 213d

I'm pretty sure that IFS does not apply to quoted strings since word splitting happens before the quote removal (see Shell Expansion).

$ ( files=$(ls); IFS=$'\n' ; for x in $files; do echo $x; done )
file a.txt
file b.txt
plainfile.txt

$ ( files=$(ls); IFS=$'\n' ; for x in "$files"; do echo $x; done )
file a.txt file b.txt plainfile.txt
on [GUIDANCE] "For" in Bash · c/linux · 1 pts · 213d

For maximum pedantry, it may be worth mentioning that filenames in typical Linux file systems can contain newline characters.

on [GUIDANCE] "For" in Bash · c/linux · 3 pts · 213d

Wouldn't for i in "$LIST"; just result in a single loop iteration with $i being the entirety of $LIST?

on Landlock-ing Linux · c/linux · 3 pts · 249d

I didn't know about this API and it seems really cool. Will definitely try it out.