$ ruby -e "f = File.open('/tmp/test.txt', 'w'); f.puts 'Yeah!'; f.close"
$ stat /tmp/test.txt
16777232 4749651 -rw-r--r-- 1 johndoe wheel 0 6 "Jan 4 14:06:05 2022" "Jan 4 14:06:05 2022" "Jan 4 14:06:05 2022" "Jan 4 14:06:05 2022" 4096 8 0 /tmp/test.txt
$ jruby -e "f = File.open('/tmp/test.txt', 'w'); f.puts 'Yeah!'; f.close"
$ stat /tmp/test.txt
16777232 4751220 ---------x 1 johndoe wheel 0 6 "Jan 4 14:21:16 2022" "Jan 4 14:21:16 2022" "Jan 4 14:21:16 2022" "Jan 4 14:21:16 2022" 4096 8 0 /tmp/test.txt