ksh를 사용 중입니다.타르 혼란의 출구 상태
dummpy_file이 존재하지 않습니다.
SUSE10/타르 버전 GNU 1.15.1
>gunzip -d dummpy_file | tar xvf -
gunzip : dummpy_file: No such file or directory
>echo $?
>0
SUSE11/타르 버전 GNU 1.20
>gunzip -d dummpy_file | tar xvf -
gunzip : dummpy_file No such file or directory
tar : This does not look tar archive
tar: Error exit delayed from previous errors
>echo $?
>2
는 다른 타르 버전으로 인해 행동의 차이인가 타르
의 종료 상태를 찾기?
ksh 및 gunzip의 버전은 무엇입니까? – choroba