-
Type:
Bug
-
Status: Closed
-
Priority:
Minor
-
Resolution: Done
-
Affects Version/s: jboss-fuse-6.2.1
-
Fix Version/s: jboss-fuse-6.3
-
Component/s: Karaf
-
Labels:
-
Sprint:6.3 Sprint 4 (Mar 28 - Apr 29)
This affect every script when using grep b/c we will have to do something to remove the ANSI reset char first..
Here is an example to demostrate the problem (the intent is to print the final 5 characters in the value)
JBossFuse:karaf@root> testVal = ( list | grep --color never "CSV" | tac )
|
[ 212] [Active ] [ ] [ ] [ 50] Apache Commons CSV (1.1.0)
|
JBossFuse:karaf@root> ( $testVal length )
|
83
|
JBossFuse:karaf@root> ( $testVal charAt 79 )
|
)
|
JBossFuse:karaf@root> ( $testVal charAt 80 )
|
|
|
JBossFuse:karaf@root> ( $testVal charAt 81 )
|
[
|
JBossFuse:karaf@root> ( $testVal charAt 82 )
|
m
|
This is the code shows the reset chars are added....