Fork me on GitHub
#babashka
<
2023-08-26
>
Ingy döt Net14:08:05

Can someone with a Mac M2 run /bin/bash -c 'echo $OSTYPE $HOSTTYPE $MACHTYPE' for me?

teodorlu14:08:34

$ /bin/bash -c 'echo $OSTYPE $HOSTTYPE $MACHTYPE'
darwin21 arm64 arm64-apple-darwin21

teodorlu14:08:32

Oops, I seem to have an M1. Please disregard my answer.

Ingy döt Net15:08:31

@U3X7174KS thanks. still useful. can you run sw_vers && uname -a && /bin/bash --version for me also?

teodorlu15:08:14

$ sw_vers && uname -a && /bin/bash --version
ProductName:    macOS
ProductVersion: 12.6.3
BuildVersion:   21G419
Darwin Locomotive 21.6.0 Darwin Kernel Version 21.6.0: Mon Dec 19 20:43:09 PST 2022; root:xnu-8020.240.18~2/RELEASE_ARM64_T6000 arm64
GNU bash, version 3.2.57(1)-release (arm64-apple-darwin21)
Copyright (C) 2007 Free Software Foundation, Inc.

🙌 2
Ingy döt Net15:08:56

Just to confirm, you are on Monterey, right?

teodorlu15:08:42

Looks like it!

teodorlu15:08:22

Posting again without the serial number:

Ingy döt Net15:08:36

I was darwin22 and you were darwin21. 22 -> Ventura 21 -> Monterey

👍 2
andre.stylianos09:08:29

$ /bin/bash -c 'echo $OSTYPE $HOSTTYPE $MACHTYPE'
darwin22 arm64 arm64-apple-darwin22

andre.stylianos09:08:36

(on M2 Pro, not sure if that makes a difference or not)

andre.stylianos09:08:22

$ sw_vers && uname -a && /bin/bash --version

ProductName:            macOS
ProductVersion:         13.5.1
BuildVersion:           22G90
Darwin DN2J7HMQ7T 22.6.0 Darwin Kernel Version 22.6.0: Wed Jul  5 22:21:53 PDT 2023; root:xnu-8796.141.3~6/RELEASE_ARM64_T6020 arm64 arm Darwin
GNU bash, version 3.2.57(1)-release (arm64-apple-darwin22)
Copyright (C) 2007 Free Software Foundation, Inc.

Ingy döt Net15:08:18

@U485ZRA58 thanks. I got it all figured out. I needed to grab the right graalvm download in my build system. https://github.com/yaml/yamlscript/blob/clojure/.common.mk#L8-L45 tested on macos/m1/m2/x86 and linux/x86 🙂

🎉 2
teodorlu16:08:09

Out of curiosity, are anyone else regularly shelling out to https://pandoc.org/ from Babashka scripts?