Changeset 13732


Ignore:
Timestamp:
10/18/12 09:27:07 (12 years ago)
Author:
Mathieu Morlighem
Message:

CHG: cosmetics

File:
1 edited

Legend:

Unmodified
Added
Removed
  • TabularUnified issm/trunk-jpl/src/m/os/oshostname.m

    r13170 r13732  
    77
    88if ispc(),
    9         [status,hostname]=system('hostname | sed ''s/-//g''');hostname=hostname(1:end-1);
    10 
     9        [status,hostname]=system('hostname | sed ''s/-//g''');
    1110        if status,
    1211                error('oshostname error message: could not run hostname command on windows os');
    1312        end
    14 
    1513else
    1614        [status,hostname]=system(['hostname -s | sed ''s/-//g''']);
     
    1816                error('oshostname error message: could not run hostname command on *nix os');
    1917        end
    20         hostname=hostname(1:end-1);
    21         hostname=ddewhite(hostname);
     18
    2219end
     20
     21%remove carriage return and blank spaces
     22hostname=hostname(1:end-1);
     23hostname=ddewhite(hostname);
Note: See TracChangeset for help on using the changeset viewer.