Skip to content

Improve detection of the distribution of the date program#9

Open
64kramsystem wants to merge 1 commit into
accessd:mainfrom
64kramsystem:improve_date_distribution_detection
Open

Improve detection of the distribution of the date program#9
64kramsystem wants to merge 1 commit into
accessd:mainfrom
64kramsystem:improve_date_distribution_detection

Conversation

@64kramsystem

Copy link
Copy Markdown

Inferring the date program distribution from the O/S is not reliable. A Mac can have the GNU distribution installed, in which case the detection is wrong.

A more solid approach is to simply test for a cmdline option (--version) that is present in the GNU version but not the BSD one.

Inferring the `date` program distribution from the O/S is not reliable. A Mac can have the GNU distribution installed, in which case the detection is wrong.

A more solid approach is to simply test for a cmdline option (`--version`) that is present in the GNU version but not the BSD one.
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.

1 participant