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

Automatically detect the OS #37

Open
mithodin opened this issue Jul 19, 2023 · 0 comments
Open

Automatically detect the OS #37

mithodin opened this issue Jul 19, 2023 · 0 comments

Comments

@mithodin
Copy link

Some shell utilities differ from os to os, e.g. Mac OS uses a different version of coreutils than most Linux distributions. This leads to some commands not working, e.g.
please give me the date 2023-01-30 UTC as a UNIX timestamp
results in
date -d "2023-01-30 UTC" +%s
which does not work on Mac OS. If I ask specifically for Mac OS, the result
date -j -u -f "%Y-%m-%d %Z" "2023-01-30 UTC" +%s
works.

It would therefore be very useful to automatically provide GPT with the operating system in use to make the results work out of the box.

xenia-lang added a commit to xenia-lang/please-cli that referenced this issue Apr 26, 2024
xenia-lang added a commit to xenia-lang/please-cli that referenced this issue Apr 26, 2024
Signed-off-by: Xenia Lang <[email protected]>
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