Mercurial > hg > octave-nkf
changeset 15700:5d6a5bc65ef1
Fix regexp escaping of arguments to ls
* scripts/miscellaneous/ls.m: Fix regexp escaping of arguments to ls.
author | Mike Miller <mtmiller@ieee.org> |
---|---|
date | Thu, 29 Nov 2012 23:10:51 -0500 |
parents | 13d9c90b9cf8 |
children | edce7d75597b |
files | scripts/miscellaneous/ls.m |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/scripts/miscellaneous/ls.m +++ b/scripts/miscellaneous/ls.m @@ -56,7 +56,7 @@ ## shell (cmd.exe) on MinGW uses '^' as escape character args = regexprep (args, '([^\w.*? -])', '^$1'); else - args = regexprep (args, '([^\w.*? -])', '\$1'); + args = regexprep (args, '([^\w.*? -])', '\\$1'); endif args = sprintf ("%s ", args{:}); else