Mercurial > octave
diff scripts/miscellaneous/unpack.m @ 21571:feac06371be1
unpack.m: Use more specific regexp to prevent accidental hits.
* unpack.m (__parse_gzip__): Make the regexp decoding the output of gzip much more specific so that it doesn't trigger on the name "dir with spaces".
author | Rik <rik@octave.org> |
---|---|
date | Thu, 31 Mar 2016 14:12:13 -0700 |
parents | 89fa0694aa2e |
children | ffad2baa90f7 |
line wrap: on
line diff
--- a/scripts/miscellaneous/unpack.m Thu Mar 31 12:46:59 2016 -0700 +++ b/scripts/miscellaneous/unpack.m Thu Mar 31 14:12:13 2016 -0700 @@ -292,7 +292,7 @@ ## Parse the output from gzip and gunzip returning the files ## commpressed (or decompressed). - files = regexprep (output, '^.+ with (.*)$', '$1'); + files = regexprep (output, '^.+ -- replaced with (.*)$', '$1'); endfunction function files = __parse_bzip2__ (output)