79185569

Date: 2024-11-13 15:30:11
Score: 1
Natty:
Report link

{1..10} is a bash feature, it is not defined in POSIX sh.

It seems that subprocess.check_output("./test.sh", shell=True) invokes sh in your second example (Linux) and bash (or another shell which supports this feature) in the first example (macOS).

See:

Reasons:
  • Probably link only (1):
  • Low length (0.5):
  • Has code block (-0.5):
  • Ends in question mark (2):
  • High reputation (-2):
Posted by: mkrieger1