File tree 2 files changed +6
-1
lines changed
test/resources/COM/FLOW/FileExistence
2 files changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -63,7 +63,7 @@ OPERATOR_LEFT = [\<]|[\<][\&]|[\&][\<]|[\<][\<]|[\<][\<][\<]
63
63
OPERATOR_RL = [ \< ][ \> ]
64
64
RIGHT_FILE_REDIRECT = ( {OPERATOR_RIGHT} | {OPERATOR_RL} ) {SPACE} * {FILESTRING}
65
65
LEFT_FILE_REDIRECT = {FILESTRING}{SPACE} *( {OPERATOR_LEFT} | {OPERATOR_RL} )
66
- REDIRECT_IGNORE = ( [ 0- 2] ( {OPERATOR_LEFT} | {OPERATOR_RL} )) | (( {OPERATOR_RIGHT} | {OPERATOR_RL} ) [ 0- 2] )
66
+ REDIRECT_IGNORE = ( [ 0- 2] ( {OPERATOR_LEFT} | {OPERATOR_RL} )) | (( {OPERATOR_RIGHT} | {OPERATOR_RL} ) [ 0- 2] ) | ( "done" {SPACE} *( {OPERATOR_LEFT} | {OPERATOR_RL} ))
67
67
68
68
69
69
STRING = [ \" ] | [ \' ]
@@ -234,6 +234,7 @@ IGNORE = {REDIRECT_IGNORE} | {STRING_ESCAPED} | ([\\][\#]) | "ssh"
234
234
String name = yytext(). replaceAll(" ([\\ s]|[\\ >]|[\\\" ]|[\\ ']|[\\ <]|[\\ &]|[\\ {]|[\\ }])+" ," " );
235
235
LOGGER . fine(" [" + this . parsedFileName+ " :" + (yyline+ 1 )+ " :" + yycolumn+ " ] - Redirection to file " + name+ " detected." );
236
236
if (! filesExistence. contains(name)){
237
+ System . err. println(" A " + location + " The existence of the file " + name + " has not been checked. " + (yyline+ 1 ));
237
238
LOGGER . fine(" [" + this . parsedFileName+ " :" + (yyline+ 1 )+ " :" + yycolumn+ " ] - setError on " + name+ " file redirection." );
238
239
setError(location," The existence of the file " + name + " has not been checked." , yyline+ 1 );
239
240
}
Original file line number Diff line number Diff line change @@ -32,3 +32,7 @@ while (( $STOP >= $START ))
32
32
done
33
33
34
34
grep -v " P" $fichier | awk ' ($9>0.0) {print $0}'
35
+
36
+ while read -r line; do
37
+ printf ' %s\n' " $line "
38
+ done < " $fichier "
You can’t perform that action at this time.
0 commit comments