-
sh
is the command line interpreter (dash).
Runningsh my_script
makes dash interpret the script. -
./
tries to find out which interpreter to use, by looking at the first line. E.g.#!/bin/bash
, or even#!/bin/ruby
(as oppsed to runningruby my_script
).
What is the difference between ./ and sh to run a script?
最新推荐文章于 2024-04-30 15:53:50 发布