0
Makefile에서 한 줄씩 파일을 읽어야합니다. 다음 트리거 segfault의 :bash를 Makefile에 사용할 때 이상한 segfault
all:
@cat myFile.txt | while read -r line; do echo $$(line); done
은 이상하게도 다음 작품 (파일의 내용을 인쇄) :
all:
@cat myFile.txt | while read -r line; do echo $$line; done
문제의 원인의 어떤 생각?
쉘 변수는 '$ {line}'중괄호로 묶을 수 있습니다. make 변수는'$ {line}'또는'$ (line)'중괄호로 묶을 수 있습니다. –