-
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?
最新推荐文章于 2020-04-27 21:41:53 发布