Having never had an installation of Matlab on a unix boxen; out of curiosity what happens there regarding which shell; does TMW make some arbitrary choice there, too?
Alternate Command Processor on Windows
4 views (last 30 days)
Show older comments
Bad, bad, TMW! :)
Appears the shell commands under Windows don't pay any attention to what user COMSPEC is...one gets CMD.EXE irregardless...
>> !ver
Microsoft Windows [Version 6.1.7601]
>> shell=getenv('comspec')
shell =
'"C:\Program Files\JPSoft\TCMD22\tcc.exe"'
>> system(shell)
TCC 22.00.41 x64 Windows 7 [Version 6.1.7601]
...
[details elided]
...
C:\DBNonBusiness...paign\Financials> exit
ans =
0
>>
This makes using features of an enhanced command processor much more of pain than otherwise and is a kick in the teeth, particularly with the restrictions TMW has placed on wildcards, etc., in their implementation of dir, etc., etc., ... I've been stewing over this for 20 years and today was finally the boiling over point to complain... :)
3 Comments
Walter Roberson
on 25 Dec 2018
Edited: Walter Roberson
on 26 Dec 2018
"MATLAB uses a shell program to execute the given command. It determines which shell program to use by checking environment variables on your system. MATLAB first checks the MATLAB_SHELL variable, and if either empty or not defined, then checks SHELL. If SHELL is also empty or not defined, MATLAB uses /bin/sh."
Answers (1)
Salahuddin Bangash
on 23 Dec 2018
I was really unaware of it, we can access cmd using Matlab. Thanks.
.m files can be combined with anything. :) .
And Bro why you replaced CMD.exe mean upgraded to ("TCMD22\tcc.exe")?
2 Comments
See Also
Categories
Find more on Startup and Shutdown in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!