I see the Ruby example in the docs uses a #!/usr/bin/env ruby
shebang line. Is the environment in which the script runs the same barebones environment one would have if there’s no .bashrc
or .bash_profile
to change the $PATH
? Or are you somehow processing the user’s initialization files before running the script?