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*

3
  • 1
    There's no issue with the assignment to PASSWD. There is an issue with the assignment to AUTHGROUP. Commented Nov 12, 2018 at 15:12
  • 1
    @Kusalananda : I’m pretty sure assignment of a string containing ! to a variable without proper quotes wouldn’t work Commented Nov 12, 2018 at 15:30
  • 2
    There is no issue with this in a non-interactive script since history expansion wouldn't be triggered. There are other good reasons for quoting the password though, as it may contain characters from $IFS, which would make for different problems (the same as in the assignment to AUTHGROUP). Commented Nov 12, 2018 at 15:32