Mercurial > forge
changeset 2983:d8f0df985a58 octave-forge
use double quotes so that escaped characters are correctly treated
author | adb014 |
---|---|
date | Mon, 29 Jan 2007 19:50:47 +0000 |
parents | 82c37e59fa7f |
children | a284ae07011f |
files | main/miscellaneous/inst/units.m |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/main/miscellaneous/inst/units.m Mon Jan 29 19:06:50 2007 +0000 +++ b/main/miscellaneous/inst/units.m Mon Jan 29 19:50:47 2007 +0000 @@ -47,8 +47,8 @@ (0 == status) || error([rawoutput, 'Verify that GNU units is installed in the current path.']); - i = index(rawoutput, '*'); - j = index(rawoutput, '\n') - 1; + i = index(rawoutput, "*"); + j = index(rawoutput, "\n") - 1; i && (i < j) || error('parsing units output "%s"', rawoutput); exist("x", "var") || (x = 1);