Skip to content
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

Fixes #7608: Add a "quiet" option to rudder agent run to only display… #34

Conversation

amousset
Copy link
Member

@@ -33,7 +36,10 @@ while getopts "iIvdcb:" opt; do
;;
b)
BUNDLE="-b ${OPTARG}"
q)
FILTER="egrep -v @@result_success@@|@@result_na@@|@@log_info@@"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is missing quotes around the regex. Without them, my bash complains:

$ rudder agent run | egrep -v @@result_success@@|@@result_na@@|@@log_info@@
-bash: @@log_info@@: command not found
-bash: @@result_na@@: command not found

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No it is not.
Pipes are not evaluated once in a variable.
Neither do quotes, so with quotes, it would match the text with quotes included.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants