MATLAB warns about terminal not being fully functional when using System command (!)
20 ビュー (過去 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!