Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

9
  • 3
    Always escape variables in if . and use -eq when compare numbers Commented Jan 12, 2022 at 13:17
  • 11
    First of all: sh and bash are not equivalent. Commented Jan 12, 2022 at 13:24
  • 2
    read is trying to read from the same stream that the script is being read from, I think... Commented Jan 12, 2022 at 13:26
  • 2
    bash <( base64 -d <<<string ) But I fail to see the point of the exercise. Commented Jan 12, 2022 at 13:34
  • 2
    ... another perhaps more closely related example Piping a script with "read" to bash Commented Jan 12, 2022 at 13:45