File tree Expand file tree Collapse file tree 2 files changed +16
-14
lines changed Expand file tree Collapse file tree 2 files changed +16
-14
lines changed Original file line number Diff line number Diff line change 66 other {mustBeTextScalar }
77end
88
9+ if stdlib .is_absolute(other )
910
10- b = stdlib .posix(base );
11- o = stdlib .posix(other );
11+ p = other ;
1212
13- if startsWith(o , ' /' ) || (ispc() && stdlib .is_absolute(o ))
14- p = o ;
15- return
16- end
13+ elseif strlength(base )
1714
18- p = b ;
19- if strlength( o )
20- if endsWith( p , ' / ' )
21- p = strcat( p , o );
22- elseif strlength( p )
23- p = strcat( p , ' / ' , o );
15+ if strlength( other )
16+ if endsWith( base , ' / ' )
17+ p = strcat( base , other );
18+ else
19+ p = strcat( base , ' / ' , other );
20+ end
2421 else
25- p = o ;
22+ p = base ;
2623 end
24+
25+ else
26+
27+ p = other ;
28+
2729end
2830
2931end
Original file line number Diff line number Diff line change 1313{" a/b" , " c/d" , " a/b/c/d" }, ...
1414{" ab/cd" , " /ef" , " /ef" }, ...
1515{stdlib .homedir(), " " , stdlib .homedir()}, ...
16- {matlabroot , " bin" , stdlib .posix( matlabroot + " /bin" ) }
16+ {matlabroot , " bin" , matlabroot + " /bin" }
1717}
1818end
1919
You can’t perform that action at this time.
0 commit comments