Skip to main content
8 events
when toggle format what by license comment
Jul 10, 2018 at 12:38 comment added PVitt @bmike: Actually, that problem is already part of the question. It is the result when passing the password via a variable.
Jul 10, 2018 at 10:55 comment added bmike Hi @PVitt You might have better luck posting an entirely new question showing the one command that has the new error. It might be hard to edit the current question and repeat getting new answers or editing the existing answers if you've moved past the initial set of errors with a \ escaping the one <
Jul 10, 2018 at 7:07 comment added PVitt Thanks for the answer. I'm also interested in the complicated way with variables, not only, but also because \< only helps to avoid the bash error. Now it is mount_smbfs: URL parsing failed, please correct the URL and try again: Invalid argument, which is the same error as when passing the password via a variable.
Jul 9, 2018 at 14:11 comment added user7886229 Well putting a "\" in front of < should make it read as a character not an operator.
Jul 9, 2018 at 14:07 comment added bmike @JBis Not sure I get what auto escape would be? The < character is defined as a high precedence operator in bash so it redirects the command mount -o nodev,nosuid -t smbfs //user:pass= to a file named word@host/share with some other stuff tacked on. Are you asking if there's a command to point out any and all characters that are operators in bash?
Jul 9, 2018 at 14:04 history edited bmike CC BY-SA 4.0
added 219 characters in body
Jul 9, 2018 at 13:57 comment added user7886229 Is there a command to auto escape strings?
Jul 9, 2018 at 13:44 history answered bmike CC BY-SA 4.0