Skip to content

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

Description

@jiajia123-wind

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions