If I am reading your report correctly this appears to be specific to autofs and when you do not escape certain characters? My suggestion was going to be escaping these charachters or using the ASCII codes for example:
DOLLARSIGN = \044
AMPERSAND = \046
You have the bash output when trying to do this via the command line, however I would expect that to fail as $ is a special character.
@mark-fox, thanks for filing this report!
If I am reading your report correctly this appears to be specific to autofs and when you do not escape certain characters? My suggestion was going to be escaping these charachters or using the ASCII codes for example:
DOLLARSIGN = \044
AMPERSAND = \046
You have the bash output when trying to do this via the command line, however I would expect that to fail as $ is a special character.