MATLAB warns about terminal not being fully functional when using System command (!)
25 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
MathWorks Support Team
am 6 Nov. 2019
Beantwortet: MathWorks Support Team
am 28 Jul. 2020
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
Akzeptierte Antwort
MathWorks Support Team
am 6 Nov. 2019
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 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Source Control finden Sie in Help Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!