MATLAB warns about terminal not being fully functional when using System command (!)

조회 수: 26 (최근 30일)
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
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개)

카테고리

Help CenterFile Exchange에서 Source Control에 대해 자세히 알아보기

태그

아직 태그를 입력하지 않았습니다.

제품

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by