home.social

#bashism — Public Fediverse posts

Live and recent posts from across the Fediverse tagged #bashism, aggregated by home.social.

  1. @davetron5000 BTW, the code I posted before had errors. Here's a one-liner that actually works with #Docker and #AlpineLinux.

    ```bash
    docker run --privileged -i --rm alpine:latest \
    <<< 'apk update && apk add usbutils && lsusb -t && exit'
    ```

    The redirection operator is a #bashism that won't work as-is in #Bourne or #FishShell. However, I validated that it works as intended under Bash, and thus probably under #Z-Shell. Hope it's useful to you, or to anyone running #TrueNAS Scale.