Mercurial > hg > octave-nkf
diff scripts/path/savepath.m @ 11589:b0084095098e
missing semicolons in script files
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Thu, 20 Jan 2011 18:26:09 -0500 |
parents | c792872f8942 |
children | 72c96de7a403 |
line wrap: on
line diff
--- a/scripts/path/savepath.m +++ b/scripts/path/savepath.m @@ -108,7 +108,7 @@ endif unwind_protect for i = 1:length (pre) - fprintf (fid, "%s\n", pre{i}) + fprintf (fid, "%s\n", pre{i}); endfor ## Remove the portion of the path defined via the command line @@ -174,18 +174,18 @@ ## Use single quotes for PATH argument to avoid string escape ## processing. Since we are using single quotes around the arg, ## double any single quote characters found in the string. - fprintf (fid, "%s\n", beginstring) + fprintf (fid, "%s\n", beginstring); if (! isempty (path_to_save_begin)) n = find (path_to_save_begin != pathsep, 1, "last"); fprintf (fid, " addpath ('%s', '-begin');\n", - strrep (path_to_save_begin(1:n), "'", "''")) + strrep (path_to_save_begin(1:n), "'", "''")); endif if (! isempty (path_to_save_end)) n = find (path_to_save_end != pathsep, 1, "last"); fprintf (fid, " addpath ('%s', '-end');\n", - strrep (path_to_save_end(1:n), "'", "''")) + strrep (path_to_save_end(1:n), "'", "''")); endif - fprintf (fid, "%s\n", endstring) + fprintf (fid, "%s\n", endstring); for i = 1:length (post) fprintf (fid, "%s\n", post{i});