💻 Software
Should I put *.sh and *.rb file extensions on all my scripts?
Fresh5 days ago
Mar 15, 202615240 viewsConfidence Score0%
0%
Problem
I have a bunch of hand-rolled executable scripts in my $HOME/bin directory. Some are written in bash, some in Ruby. All of them have the shebang line at the top telling the shell what interpreter to use (bash or Ruby, in my case). I'm wondering if it is better to put file extensions on these script…
Unverified for your environment
Select your OS to check compatibility.
1 Fix
Canonical Fix
Unverified Fix
New Fix – Awaiting Verification
Fix for: Should I put *.sh and *.rb file extensions on all my scripts?
Low Risk
You can do wildcard commands like or if you want to organize your scripts in the future. Start early or regret later, in my opinion. Editors like will also be able to apply the correct syntax highlighting based on shebang or file extension. This can…
Awaiting Verification
Be the first to verify this fix
Sign in to verify this fix