"쉬뱅"의 두 판 사이의 차이

잔글 (Jmnote님이 셔뱅 문서를 쉬뱅 문서로 이동하면서 넘겨주기를 덮어썼습니다)
 
(사용자 2명의 중간 판 13개는 보이지 않습니다)
1번째 줄: 1번째 줄:
==개요==
==개요==
;shebang<ref>shell + bang</ref>, sha-bang<ref>sharp + bang</ref>, hashbang, pound-bang, hash-exclam, hash-pling
;shebang<ref>shell + bang</ref>, sha-bang<ref>sharp + bang</ref>, hashbang, pound-bang, hash-exclam, hash-pling
;쉬뱅, 해쉬뱅, 해시뱅
;쉬뱅 /ʃɪˈbæŋ/<ref>https://www.oxfordlearnersdictionaries.com/definition/english/shebang</ref>, 셔뱅 /ʃəbǽŋ/, 샤뱅, 해쉬뱅, 해시뱅
* 리눅스 스크립트의 #!로 시작되는 첫번째 줄
* 리눅스 스크립트의 #!로 시작되는 첫번째 줄
* 스크립트를 읽는 인터프리터를 지정함
* 스크립트를 읽는 인터프리터를 지정함
9번째 줄: 9번째 줄:


==예시==
==예시==
<source lang='bash'>
<syntaxhighlight lang='bash'>
#!/bin/sh
#!/bin/sh
echo 'Hello world!'
echo 'Hello world!'
</source>
</syntaxhighlight>
<source lang='ruby'>
<syntaxhighlight lang='ruby'>
#!/usr/bin/env ruby
#!/usr/bin/env ruby
puts 'Hello world!'
puts 'Hello world!'
</source>
</syntaxhighlight>


==같이 보기==
==같이 보기==
{{z컬럼3|
* [[샾]]
* [[샾]]
* [[느낌표]]
* [[느낌표]]
* [[인터프리터]]
* [[Bash 주석 가이드]]
* [[프래그먼트 식별자]]
* [[프래그먼트 식별자]]
* [[리눅스 쉘에서 파일 실행]]
* [[리눅스 쉘에서 파일 실행]]
* [[Bash 주석 가이드]]
* [[^M: bad interpreter: No such file or directory]]
 
}}
==주석==
<references/>


==참고 자료==
==참고==
*http://en.wikipedia.org/wiki/Shebang_(Unix)
* {{영어위키백과|Shebang (Unix)}}


[[분류: 리눅스]]
[[분류: 리눅스]]

2023년 2월 8일 (수) 13:27 기준 최신판

1 개요[ | ]

shebang[1], sha-bang[2], hashbang, pound-bang, hash-exclam, hash-pling
쉬뱅 /ʃɪˈbæŋ/[3], 셔뱅 /ʃəbǽŋ/, 샤뱅, 해쉬뱅, 해시뱅
  • 리눅스 스크립트의 #!로 시작되는 첫번째 줄
  • 스크립트를 읽는 인터프리터를 지정함
→ 주석의 일종으로 보이지만, 파일을 직접 실행할 때는 인터프리터 지정이라는 의미가 있음

 

2 예시[ | ]

#!/bin/sh
echo 'Hello world!'
#!/usr/bin/env ruby
puts 'Hello world!'

3 같이 보기[ | ]

4 참고[ | ]

문서 댓글 ({{ doc_comments.length }})
{{ comment.name }} {{ comment.created | snstime }}