What is the difference between bash and sh?
Fresh3 days ago
Mar 15, 202618347 viewsConfidence Score0%
0%
Problem
I see two types of code being used: and: I searched for this online and opinions vary a lot. The explanations I saw on most websites say that is older than , and that there is no real difference. Does someone know the difference between these? Can you give me a practical example when to use one ove…
Error Output
#!/usr/bin/sh
Unverified for your environment
Select your OS to check compatibility.
1 Fix
Canonical Fix
Unverified Fix
New Fix – Awaiting Verification
Fix for: What is the difference between bash and sh?
Low Risk
is a superset of ie. everything you can do in you can do in . Bash has more features (branching, builtins, arrays) making script easier to write. Some later *nix'es have as a link to For a full explanation of what here's a tutorial
Awaiting Verification
Be the first to verify this fix
Sign in to verify this fix