-
Notifications
You must be signed in to change notification settings - Fork 343
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
Features.rst Issues in escape sequences examples #5131
Conversation
In the escape sequence section there is a list with some example. The last is "Acceleration (ms-2)." I add the backslash so the brackets are shown in the code (I try it) and complete the result with the "(ms@+-2@+)" (not sure if I edit it well). Also, in the previous example (Manoa Straße) it is not clear what the escape sequences does in "Manoa". It was Månoa?
Right, with " also work. I try without them. In fact the first three commands work. The 4th (which is the one of the docs) doesn't. I am not sure which is the most appropriate.
|
I think the double-quote first case is the one we should recommend. There are probably strange situations of scripts calling scripts passing args where one has to do something different, but we should not worry about that. |
Actually, |
Another option is Which should I use for the docs? The previous first one? |
I believe it depends on how the string is passed to GMT. If you save However, when typing the command in a terminal or in a bash script, Strictly speaking, |
I am using bash in Ubuntu and I try the followings: Don't work:
Work:
So I think we maybe could add a warning note for bash users. |
For this to work, you have to manually add the text to the temp file.
I think so, but I'm not sure if |
I check and it works.
Rigth too. |
To me, the best solution is to list Actually, since |
I agree. |
I remove the \ in the table and add a note as discussed.
Note looks good, but the backslashes in front of the hash-tags need to be removed. Remember, those are just examples of the syntax, not strings that can be copied/pasted as is into any particular file or command for some OS. As it is, the string cannot be used without also escaping the parenthesis. So just give the clean syntax |
Mmm, ok, I could remove them but I think that they were already there. I just add the backslash before the brackects (and already removed them). |
Ok, that may be true. But since that section is "OS-free" it should not have any escapes of any sort. Since this is your branch, perhaps you can do the edit? |
In the escape sequence section there is a list with some example. The last is "Acceleration (ms-2)." I add the backslash so the brackets are shown when the code is used (I try it) and complete the result with the "(ms@+-2@+)" (not sure if I edit it well).
Also, in the previous example (Manoa Straße) it is not clear what the escape sequences does in "Manoa". It was Månoa?