• 0 Posts
  • 6 Comments
Joined 9 months ago
cake
Cake day: August 3rd, 2025

help-circle
  • I look at it more like Artix exists to solve the one “problem” with Arch. As much as Arch is generally about user choice, the one thing it decided to be opinionated about was the mandatory use of systemd. Artix tries to follow Arch as closely as possible while providing the alternate init systems. I think that’s pretty cool, even if their hatred of systemd is childish.






  • Remus86@lemmy.ziptoBash@lemmy.mlread user input problem
    link
    fedilink
    English
    arrow-up
    1
    ·
    9 months ago

    Do this instead to treat name as a locally scoped variable:

    foo() {
        local name="$1"
        read -r -p "delete $name (default is no) [y/n]? " choice
        choice="${choice:-n}"
        echo "\$choice: $choice"
    }
    
    printf "%s\n" "foo" "bar" "baz" "eggs" "spam" | while read -r name; do
        foo "$name"
    done