요약 : 

원래 Linux에서 Bash shell 쓰다가, 기능이 많이 추가되고 heavy 해지니까, 상대적으로 light한 dash를 사용해서 .sh script를 실행하게 되었다.

 

그러나 아직 많은 legacy script들이 bash shell을 써서 돌아가고, Login shell도 Bash shell을 쓰고 있어서, 두 진영 간의 충돌이 일어나고 있는 상황.

 

https://storycompiler.tistory.com/101

 

[Ubuntu/Linux] #!/bin/sh에 대한 간단한 이야기

우분투로 작업을 하다보면 필연적으로 쉘스크립트를 마주하게 됩니다. 쉘스크립트 파일을 열어보면 첫번째 줄에 주석 비스무레한 것이 있지요. '#'으로 시작하기 때문에 주석처럼 보이는 것인

storycompiler.tistory.com

[Ubuntu_Linux] #!_bin_sh에 대한 간단한 이야기.mhtml
2.54MB

 

https://medium.com/@codingmaths/bin-bash-what-exactly-is-this-95fc8db817bf

 

(#!/bin/bash ) What exactly is this ?

WHAT IS THIS LINE CALLED?

medium.com

 

+ Recent posts