Comment needs to be escaped. #19

Closed
d2kagw opened this Issue Oct 3, 2012 · 1 comment

Comments

Projects
None yet
2 participants
@d2kagw

d2kagw commented Oct 3, 2012

If you have an apostrophe in the comment it produces an invalid command.
For example:

useradd -c 'John Smith's Account' ...

The above command now has an open quote.

@fnichol

This comment has been minimized.

Show comment Hide comment
@fnichol

fnichol May 23, 2013

Owner

Good catch! Since the user_account delegates the hard work down to the user resource (which ships with Chef), this is actually a Chef bug. I found a tracking ticket CHEF-3062 but it doesn't appear to have a pull request associated with it.

I may try to give the ticket some love, but in the meantime I'd like to close this one out since there isn't going to be a clever way to account for it in this cookbook.

Thank you again--I'm sure others will find this useful for reference (as will I)

Owner

fnichol commented May 23, 2013

Good catch! Since the user_account delegates the hard work down to the user resource (which ships with Chef), this is actually a Chef bug. I found a tracking ticket CHEF-3062 but it doesn't appear to have a pull request associated with it.

I may try to give the ticket some love, but in the meantime I'd like to close this one out since there isn't going to be a clever way to account for it in this cookbook.

Thank you again--I'm sure others will find this useful for reference (as will I)

@fnichol fnichol closed this May 23, 2013

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment