On Unix platforms, !svn and system('svn') commands do not work in MATLAB starting R2024b

13 views (last 30 days)
On Unix platforms, in MATLAB R2024b, using svn commands within MATLAB using the bang operator and the system command no longer work and throw "undefined symbol" errors.

Accepted Answer

Rebecca Nakhoul
Rebecca Nakhoul on 7 Apr 2025
Starting in R2024b, on Linux systems, you can no longer call svn commands from within MATLAB using the bang symbol ! and the MATLAB system command. For example, !svn status throws an "undefined symbol" error.
Workaround:
Reload the environment variables stored in the user's Home folder, before executing svn commands.
!env -i HOME="$HOME" svn status

More Answers (0)

Categories

Find more on Source Control in Help Center and File Exchange

Tags

Products


Release

R2024b

Community Treasure Hunt

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

Start Hunting!