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

mlr: TZ environment variable appears malformed when using filename for TZ env var #1406

Open
DmitriK opened this issue Oct 6, 2023 · 0 comments

Comments

@DmitriK
Copy link

DmitriK commented Oct 6, 2023

Glibc specifies that the TZ variable can be in the form of :characters (note the colon, also see end of https://www.gnu.org/software/libc/manual/html_node/TZ-Variable.html about third form) where characters is the name of a timezone file. However, running mlr with such an env variables results in an error message:

$ env TZ=:/etc/localtime mlr --csv tail                                                                                                                                                                
mlr: TZ environment variable appears malformed: ":/etc/localtime"

Note that I set this system-wide due to https://blog.packagecloud.io/set-environment-variable-save-thousands-of-system-calls/, so it affects every use of mlr, not just individual scripts.

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

No branches or pull requests

1 participant