MATLAB warns about terminal not being fully functional when using System command (!)
조회 수: 26 (최근 30일)
이전 댓글 표시
MathWorks Support Team
2019년 11월 6일
답변: MathWorks Support Team
2020년 7월 28일
I try to use Bash commands (git) under Linux in MATLAB using the system command or its operator (!).
The command 'git log -1' yields the following behavior. How can I solve this?

The message says the following:
WARNING: terminal is not fully functional
채택된 답변
MathWorks Support Team
2019년 11월 6일
This happens because when MATLAB's system command executes it uses its own environment and not the environment that MATLAB was first started from.
The following works because MATLAB can see and set the environment variable before running the git command.
system('TERM=ansi; git <any command>')
댓글 수: 0
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Source Control에 대해 자세히 알아보기
제품
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!