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

Write _autoenv_check_authorized_env_file to stderr #35

Merged
merged 1 commit into from
Aug 27, 2015

Conversation

blueyed
Copy link
Collaborator

@blueyed blueyed commented Aug 27, 2015

stdout might be redirected, e.g. with "cd - >/dev/null", and this
message should appear in stderr probably anyway.

I've tried to add a test for this, by redirecting stdout in .zshenv, but
cram does not handle this well (and appears to redirect stderr to stdout
anyway).

stdout might be redirected, e.g. with "cd - >/dev/null", and this
message should appear in stderr probably anyway.

I've tried to add a test for this, by redirecting stdout in .zshenv, but
cram does not handle this well (and appears to redirect stderr to stdout
anyway).
echo "" >&2
echo "**********************************************" >&2
echo "" >&2
cat $1 >&2
Copy link
Owner

Choose a reason for hiding this comment

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

No related really, but any reason we do command ls but not command cat?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Nope, good point.

It's likely because ls is often aliased, while cat is not.

Copy link
Owner

Choose a reason for hiding this comment

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

Yea I thought something along those lines too. Nice that you robustified this even further :)

@Tarrasch
Copy link
Owner

LGTM

@blueyed blueyed merged commit 90d3b53 into Tarrasch:master Aug 27, 2015
blueyed added a commit that referenced this pull request Aug 27, 2015
@blueyed blueyed deleted the message-to-stderr branch August 27, 2015 20:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants