본문 바로가기
LINUX

bash 에서 부울 연산자

by Rainbound-IT 2022. 7. 15.
반응형

일반적인 부울과 다름

 

추후 정리

 

 

https://stackoverflow.com/questions/19670061/bash-if-false-returns-true-instead-of-false-why

 

bash "if [ false ];" returns true instead of false -- why?

Why does the following output True? #!/bin/sh if [ false ]; then echo "True" else echo "False" fi This will always output True even though the condition would seem to

stackoverflow.com

 

반응형

'LINUX' 카테고리의 다른 글

Alpine linux  (0) 2022.07.18
쉘스크립트 [: missing `]' 에러  (0) 2022.07.15
리눅스 /var/log 관련 파일  (0) 2022.07.15
리눅스 심볼릭 링크, 하드 링크  (0) 2022.07.14
리눅스 파일검색 및 파일내 문자 검색  (0) 2022.07.07

댓글