Skip to content

Conversation

@freshdresch
Copy link
Contributor

I thought an example of the format output mode would be helpful, so I added one to the man page. I also changed the format strings in out_format.c to use single quotes instead of double quotes. This prevents the shell from evaluating our format strings as commands, since they are wrapped in $(...). Lastly, I changed the long format string example to be one string as opposed to a multiline string. While the previous format looked nicer, you could not directly paste this into a bmon command and have it work correctly due to the spacing. With this format, you can do that.

I made separate commits for each of these changes, so you can cherry pick what you want if you don't want the full set.

…n is clear, it is nice to see an example to get started. Single quotes are used to prevent the shell from running our bmon patterns as commands, and to prevent it from doing wildcard expansion for the interface string.
…e shell from running our provided format placeholders.
…hile this is less pretty than it was before, it allows the user to actually paste the format string directly into their bmon command to try it out. Before this change, the way the string was formatted you could not simply paste it in and run it (whether it had single or double quotes).
@tgraf
Copy link
Owner

tgraf commented Oct 7, 2016

This looks great, thanks!

@tgraf tgraf merged commit 29fb431 into tgraf:master Oct 7, 2016
@freshdresch
Copy link
Contributor Author

No problem! Thanks for the fantastic tool!

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants