CHAAANY ARCHIVE

CI Automation

1개의 기록을 주제별로 둘러보세요.

Interactive Shell과 Non-Interactive Shell: Bash 실행 모드·Startup File 구분

대화식 명령과 비대화식 명령은 명령 자체의 종류라기보다 shell이 입력을 받는 방식과 실행 환경의 차이다. 같은 grep, wget, Python program도 terminal에서 직접 실행할 수 있고 script나 CI에서 자동 실행할 수도 있다.그래서 “이 command는 non-interactive tool이다”와 “현재 Bash가 non-interactive shell이다”를 구분해야 한다. 전자는 prompt 없이 automation에 쓰기 좋은 program 특성을 말할 수 있고, 후자는 Bash가 interactive mode로 시작됐는지를 뜻한다.Interactive Shell이란GNU Bash 기준으로 option이 아닌 argument와 -c 없이 시작되고 input·error가 t..

728x90