bigdecimal icon indicating copy to clipboard operation
bigdecimal copied to clipboard

Use of hard-coded shebang in sample scripts may cause portability issues

Open jiajia123-wind opened this issue 2 months ago • 0 comments

Hi bigdecimal maintainers,

I noticed that some sample scripts in the gem, specifically:

  • sample/linear.rb
  • sample/pi.rb

have a hard-coded shebang:

#!/usr/local/bin/ruby

On many systems, this is not the default Ruby interpreter path, which may cause execution errors for users whose Ruby is installed elsewhere.

I suggest updating the shebang to a more portable version:

#!/usr/bin/env ruby

or using other more flexible approaches……

These approaches would improve portability and usability across different environments.

Thank you for considering this improvement.

jiajia123-wind avatar Oct 23 '25 03:10 jiajia123-wind