![자동 완성 실패"bash: !ref: 바인딩되지 않은 변수" 사용 [닫기]](https://linux55.com/image/160244/%EC%9E%90%EB%8F%99%20%EC%99%84%EC%84%B1%20%EC%8B%A4%ED%8C%A8%22bash%3A%20!ref%3A%20%EB%B0%94%EC%9D%B8%EB%94%A9%EB%90%98%EC%A7%80%20%EC%95%8A%EC%9D%80%20%EB%B3%80%EC%88%98%22%20%EC%82%AC%EC%9A%A9%20%5B%EB%8B%AB%EA%B8%B0%5D.png)
Bash 터미널에서 자동 완성을 사용하려고 하면 TAB다음 오류가 발생합니다.
bash: !ref: unbound variable
bash: words[i]: unbound variable
추가 세부 사항:
$ echo $SHELL
/bin/bash
$ echo $BASH
/bin/bash
$ bash --version
GNU bash, version 4.2.46(2)-release (x86_64-redhat-linux-gnu)
Copyright (C) 2011 Free Software Foundation, Inc.
Licesnse GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
...
명령의 출력은 getent passwd $USER
다음으로 끝납니다.:/bin/bash/
답변1
명령 후 문제가 해결되었습니다.
$ set +u