View | Details | Raw Unified | Return to bug 60608
Collapse All | Expand All

(-)src/portlint.pl (+6 lines)
Lines 2122-2127 Link Here
2122
	my($s, $i, %cmdnames);
2122
	my($s, $i, %cmdnames);
2123
	my($pre);
2123
	my($pre);
2124
2124
2125
	# trim all trailing backslash and newline
2126
	$str =~ s/\\\n\s*/ /g;
2127
	
2128
	# ignore parameter string to reinplace command
2129
	$str =~ s/([ \t][\@-]?(?:sed|\$[\{\(]SED[\}\)]|\$[\{\(]REINPLACE_CMD[\}\)]))((?:\s+\-\w+)*\s+(?:"(?:\\"|[^"\n])*"|'(?:\\'|[^'\n])*'))+(.*)/$1$3/g; #'
2130
2125
	# ignore parameter string to echo command
2131
	# ignore parameter string to echo command
2126
	$str =~ s/[ \t][\@-]?(echo|\$[\{\(]ECHO[\}\)]|\$[\{\(]ECHO_MSG[\}\)])[ \t]+("(\\'|\\"|[^"])*"|'(\\'|\\"|[^"])*')[ \t]*[;\n]//; #'
2132
	$str =~ s/[ \t][\@-]?(echo|\$[\{\(]ECHO[\}\)]|\$[\{\(]ECHO_MSG[\}\)])[ \t]+("(\\'|\\"|[^"])*"|'(\\'|\\"|[^"])*')[ \t]*[;\n]//; #'

Return to bug 60608