Raspberry Pi_Kor_10.1.3 quote 규칙

10.1.3 quote 규칙

10.1.3.1 quote 규칙 개요

쿼우팅(quoting)이란 문자열을 따옴표로 묶는 것을 말한다. 이렇게 하는 이유는 문자열 안에 특수 문자가 들어가 있을 경우, 쉘이나 쉘 스크립트에 의해 그 특수 문자가 재해석이나 확장되는 것을 방지하기 위함이다. 참고로 “특수문자”는 어떤 문자가 가진 글자 그대로의 뜻과는 다른 해석이 가능한 문자를 이야기한다. 예를 들면, 와일드 카드 문자인 “*”는 특수문자이다.

Raspberry Pi_Eng_10.1.3 Quoting Rule

10.1.3 Quoting Rule

10.1.3.1 Overview of Quoting Rule

Quoting is to enclose a string with quotation marks. The reason for doing this is to prevent the special characters from being reinterpreted or expanded by the Shell or Shell script when special characters are included in the string. For reference, “special character” refers to a character that can be interpreted differently from the meaning of a character. For example, the wildcard character “*” is a special character.