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

bug, not using errtrace when using VERBOSE #1088

Closed
adrelanos opened this Issue Jul 28, 2015 · 3 comments

Comments

Projects
None yet
2 participants
@adrelanos
Member

adrelanos commented Jul 28, 2015

I find the following quite strange.

Example:
https://github.com/marmarek/qubes-linux-template-builder/blob/fe6b1be0dbc1621256b33110e7511e29c6cd789d/qubeize_image

if [ "$VERBOSE" -ge 2 -o "$DEBUG" == "1" ]; then
    set -x
else
    set -e
fi

Yes, I want verbose output, but if I want this, why would I want to skip set -e?

Also, if I want to use verbose, then from start. Not after a few lines already have been run.

@adrelanos

This comment has been minimized.

Show comment
Hide comment
@adrelanos

adrelanos Jul 28, 2015

Member

Example pull request:
https://github.com/marmarek/qubes-linux-template-builder/pull/5

(Similar cases need to be fixed. Can provide pull requests, after agreeing on the principle.)

Current implementation:
https://github.com/marmarek/qubes-linux-template-builder/blob/fe6b1be0dbc1621256b33110e7511e29c6cd789d/qubeize_image

Proposed implementation:
https://github.com/adrelanos/qubes-linux-template-builder/blob/995c98e512725e280ad2093eaf2a3cbe236da55e/qubeize_image

(As an orthogonal issue, set -e happens very late. Probably should be done after the if verbose with set -x. But if that makes sense is a different topic. Haven't changed this yet, because that would likely be a more risky change.)

Member

adrelanos commented Jul 28, 2015

Example pull request:
https://github.com/marmarek/qubes-linux-template-builder/pull/5

(Similar cases need to be fixed. Can provide pull requests, after agreeing on the principle.)

Current implementation:
https://github.com/marmarek/qubes-linux-template-builder/blob/fe6b1be0dbc1621256b33110e7511e29c6cd789d/qubeize_image

Proposed implementation:
https://github.com/adrelanos/qubes-linux-template-builder/blob/995c98e512725e280ad2093eaf2a3cbe236da55e/qubeize_image

(As an orthogonal issue, set -e happens very late. Probably should be done after the if verbose with set -x. But if that makes sense is a different topic. Haven't changed this yet, because that would likely be a more risky change.)

marmarek added a commit to marmarek/old-qubes-linux-template-builder that referenced this issue Aug 2, 2015

Merge remote-tracking branch 'origin/pr/5'
* origin/pr/5:
  example fix 'bug, not using errtrace when using VERBOSE'

QubesOS/qubes-issues#1088

@adrelanos adrelanos referenced this issue in marmarek/qubes-builder-debian Aug 3, 2015

Merged

move verbosity; fixed typo; removed leading space #12

@marmarek

This comment has been minimized.

Show comment
Hide comment
@marmarek

marmarek Aug 4, 2015

Member

Is it all, or somewhere this bug is still present?

Member

marmarek commented Aug 4, 2015

Is it all, or somewhere this bug is still present?

@adrelanos

This comment has been minimized.

Show comment
Hide comment
@adrelanos

adrelanos Aug 4, 2015

Member

That's all.

Member

adrelanos commented Aug 4, 2015

That's all.

@adrelanos adrelanos closed this Aug 4, 2015

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