-
Notifications
You must be signed in to change notification settings - Fork 51
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
scrot 'test$'
creates test$
#270
Comments
More information because this is a bit cryptic: scrot ignores the |
That change was intentional. But since it ignores unknown specifier in normal cases (which I didn't consider at the time), I can see how this can be confusing. We can change it to either go back to previous behavior where The behavior on unknown specifier is undocumented, so we are free to go either ways. |
I'd like to hard error on unknown specifiers. |
For specifiers, sure. I don't mind that. But what about backslashes? The current behavior on backslashes is extremely confusing (and borderline incorrect) to say the least. The manpage states:
It says, [scrot master]~> ./src/scrot 'test\n<-skipped'
[scrot master]~> ls test*
'test<-skipped' It also just removes any backslashes for no real reason: [scrot master]~> ./src/scrot 'test\<-removed'
[scrot master]~> ls test*
'test<-removed' So if you wanted an actual backslash, you'd need to use |
I guess ignoring unnecessary escapes would be what the typical software does. We can do that, and maybe print a warning over it. Or hard error too. I don't know. Edit: you just reminded me of undocumented behavior in scrot, I don't like it, probably should make an issue about that. |
Commit 2e33c4c changed scrot's behavior.
In 7ee199c (the preceding commit),
scrot 'test$'
would create a file named test. 2e33c4c creates a file named test$.The text was updated successfully, but these errors were encountered: