Jim Meyering
ae2b0d2ddc
tests: more automated quote adjustment
...
Relax initial regexp to match more instances, but add a
filter to avoid some invalid conversions. Run this:
git grep -l "\`[^']*'" tests | xargs perl -pi -e '$q=q"'\''";' \
-e '$q="$q\\$q$q"; /(= ?\`|\`expr|\`echo|\Q$q\E)/ and next;' \
-e ' s/\`([^'\''"]*?'\'')/'\''$1/g'
The last disjunct in the above (...) filter is to exempt
any line that contains this string: '\''
With quoting like that, converting a ` to ' is likely to cause trouble,
so we'll handle those manually. Here are three examples where
the exemption is required:
*': `link-to-dir/'\'': hard link not allowed for directory'*) ;;
printf 'creating file `%s'\''\n' $f
'mv: inter-device move failed: `%s'\'' to `%s'\'';'\
2012-01-09 21:50:08 +01:00
..
2001-03-17 08:49:25 +00:00
2001-03-17 08:49:25 +00:00
1996-12-28 05:14:37 +00:00
1996-12-28 05:14:37 +00:00
1996-12-28 05:14:37 +00:00
1996-12-28 05:14:37 +00:00
1996-12-28 05:14:37 +00:00
1996-12-28 05:14:37 +00:00
2007-07-04 12:45:10 +02:00
2007-07-04 12:45:10 +02:00
2007-07-04 12:45:10 +02:00
2007-07-04 12:45:10 +02:00
2007-07-04 12:45:10 +02:00
2007-07-04 12:45:10 +02:00
2007-07-04 12:45:10 +02:00
2007-07-04 12:45:10 +02:00
2001-03-17 08:49:25 +00:00
2007-07-04 12:45:10 +02:00
2001-03-17 08:49:25 +00:00
2001-03-17 08:49:25 +00:00
2007-07-04 12:45:10 +02:00
2001-03-17 08:49:25 +00:00
2007-07-04 12:45:10 +02:00
2001-03-17 08:49:25 +00:00
2007-07-04 12:45:10 +02:00
2007-07-04 12:45:10 +02:00
2007-07-04 12:45:10 +02:00
2001-03-17 08:49:25 +00:00
2007-07-04 12:45:10 +02:00
2007-07-04 12:45:10 +02:00
2007-07-04 12:45:10 +02:00
2001-03-17 08:49:25 +00:00
2007-07-04 12:45:10 +02:00
2001-03-17 08:49:25 +00:00
2001-03-17 08:49:25 +00:00
2001-03-17 08:49:25 +00:00
2007-07-04 12:45:10 +02:00
2001-03-17 08:49:25 +00:00
2001-03-17 08:49:25 +00:00
2001-03-17 08:49:25 +00:00
2001-03-17 08:49:25 +00:00
2001-03-17 08:49:25 +00:00
2007-07-04 12:45:10 +02:00
2007-07-04 12:45:10 +02:00
2007-07-04 12:45:10 +02:00
2001-03-17 08:49:25 +00:00
2007-07-04 12:45:10 +02:00
2007-07-04 12:45:10 +02:00
2001-03-17 08:49:25 +00:00
2001-03-17 08:49:25 +00:00
2001-03-17 08:49:25 +00:00
2007-07-04 12:45:10 +02:00
2007-07-04 12:45:10 +02:00
2007-07-04 12:45:10 +02:00
2001-03-17 08:49:25 +00:00
2007-07-04 12:45:10 +02:00
2007-07-04 12:45:10 +02:00
2001-03-17 08:49:25 +00:00
1996-12-28 05:14:37 +00:00
1996-12-28 05:14:37 +00:00
1996-12-28 05:14:37 +00:00
2007-07-04 12:45:10 +02:00
2007-07-04 12:45:10 +02:00
2007-07-04 12:45:10 +02:00
2001-03-17 08:49:25 +00:00
2001-03-17 08:49:25 +00:00
2007-07-04 12:45:10 +02:00
1996-12-28 05:14:37 +00:00
2001-03-17 08:49:25 +00:00
2001-03-17 08:49:25 +00:00
2001-03-17 08:49:25 +00:00
2001-03-17 08:49:25 +00:00
2007-07-04 12:45:10 +02:00
2007-07-04 12:45:10 +02:00
2007-07-04 12:45:10 +02:00
2007-07-04 12:45:10 +02:00
2007-07-04 12:45:10 +02:00
2007-07-04 12:45:10 +02:00
2007-07-04 12:45:10 +02:00
2001-03-17 08:49:25 +00:00
2007-07-04 12:45:10 +02:00
2007-07-04 12:45:10 +02:00
2007-07-04 12:45:10 +02:00
2007-07-04 12:45:10 +02:00
2007-07-04 12:45:10 +02:00
2001-03-17 08:49:25 +00:00
2007-07-04 12:45:10 +02:00
2007-07-04 12:45:10 +02:00
2007-07-04 12:45:10 +02:00
2001-03-17 08:49:25 +00:00
2007-07-04 12:45:10 +02:00
2001-03-17 08:49:25 +00:00
2001-03-17 08:49:25 +00:00
2007-07-04 12:45:10 +02:00
2007-07-04 12:45:10 +02:00
2007-07-04 12:45:10 +02:00
2007-07-04 12:45:10 +02:00
2007-07-04 12:45:10 +02:00
2007-07-04 12:45:10 +02:00
2007-07-04 12:45:10 +02:00
2007-07-04 12:45:10 +02:00
2007-07-04 12:45:10 +02:00
2007-07-04 12:45:10 +02:00
2007-07-04 12:45:10 +02:00
2009-03-07 23:52:08 +01:00
2009-03-07 23:52:08 +01:00
2009-03-07 23:52:08 +01:00
2009-03-07 23:52:08 +01:00
2009-03-07 23:52:08 +01:00
2009-03-07 23:52:08 +01:00
2009-03-07 23:52:08 +01:00
2009-03-07 23:52:08 +01:00
2009-03-07 23:52:08 +01:00
2009-03-07 23:52:08 +01:00
2012-01-09 21:50:08 +01:00
1999-04-15 13:26:50 +00:00
1999-04-15 13:26:50 +00:00
1999-04-15 13:26:50 +00:00
1996-12-28 05:14:37 +00:00
1996-12-28 05:14:37 +00:00
1996-12-28 05:14:37 +00:00
1996-12-28 05:14:37 +00:00
1999-04-15 13:26:50 +00:00
1999-04-15 13:26:50 +00:00
1999-04-15 13:26:50 +00:00
1999-04-15 13:26:50 +00:00
1996-12-28 05:14:37 +00:00
1996-12-28 05:14:37 +00:00
1996-12-28 05:14:37 +00:00
1999-04-15 13:26:50 +00:00
1996-12-28 05:14:37 +00:00
1996-12-28 05:14:37 +00:00
1996-12-28 05:14:37 +00:00
1999-04-15 13:26:50 +00:00
1999-04-15 13:26:50 +00:00
1999-04-15 13:26:50 +00:00
1999-04-15 13:26:50 +00:00
1999-04-15 13:26:50 +00:00
1999-04-15 13:26:50 +00:00
1999-04-15 13:26:50 +00:00
1997-02-16 19:08:01 +00:00
1997-02-16 19:08:01 +00:00
1997-02-16 19:08:01 +00:00
1997-02-16 19:08:01 +00:00
1999-04-15 13:26:50 +00:00
1999-04-15 13:26:50 +00:00
1999-04-15 13:26:50 +00:00
1999-04-15 13:26:50 +00:00
2007-07-04 12:45:10 +02:00
2010-01-06 21:07:23 -07:00
2007-07-04 12:45:10 +02:00
2007-07-04 12:45:10 +02:00
2007-07-04 12:45:10 +02:00
2007-07-04 12:45:10 +02:00
2007-07-04 12:45:10 +02:00
2007-07-04 12:45:10 +02:00
2007-07-04 12:45:10 +02:00
2007-07-04 12:45:10 +02:00
2007-07-04 12:45:10 +02:00
2007-07-04 12:45:10 +02:00
2007-07-04 12:45:10 +02:00