• 102 Posts
  • 32 Comments
Joined 2 months ago
cake
Cake day: October 7th, 2025

help-circle



















  • Yep, the code you provided is compiled into this:

    command_0="$(cat file.txt | grep "READY")"
    __status=$?
    if [ "${__status}" != 0 ]; then
        echo "Failed to read the file"
    fi
    

    So, the outcome would depend on the pipefail option. (set -o pipefail)

    As you suggested, an Amberic snippet would be:

    import { file_read } from "std/fs"
    import { match_regex } from "std/text"
    
    const result = file_read("file.txt") failed {
        echo "Failed to read the file"
    }
    if match_regex(result, "READY"):
        echo "file.txt contains READY"
    







  • I will try this. I rarely open xls files and all the icons on libre Calc look… old. They feel like they’re straight out of the year 2000 (which might be true). I tried changing the theme, but none of them suited my taste.

    The bad thing is Collabora only provides a single flatpak file for Linux. I wish it would be served on flathub. I was so disappointed enough that I tried OnlyOffice yesterday, but all the UI components of OnlyOffice are too large for my screen and the available scaling factor options are 100%, 125%, and so on while what I really need 75%. There is a feature request for this by the way.