Skip to contentSkip to conversation

ade: fix the bug of ar01

PATCH In review liubo 3 participants 4 messages Dec 16, 2009 – Dec 18, 2009

lore
Share & tools
lore

liubo

author
#0 lore raw

PATCH 2/3 ade: fix the bug of ar01

Command "ar -tv" 's output doesn't match with "ls -ln" 's output on item "permission".

s/-$permissions/-$permissions./

This patch fixed the bug.

---
 testcases/commands/ade/ar/ar01 |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
testcases/commands/ade/ar/ar01 +1 -1
index c8f85eb..c393959 100755
@@ -584,7 +584,7 @@ ar -tv $TCtmp/lib.a |
 while
 read permissions uid size month day time year file_name
 do
-echo "-$permissions;$uid;$size;$month;$day;$time;$file_name"
+echo "-$permissions.;$uid;$size;$month;$day;$time;$file_name"
 done >> $TCtmp/lib.a.stdout
 ttest
 
Signature · 17 lines
1.6.2.2






------------------------------------------------------------------------------
This SF.Net email is sponsored by the Verizon Developer Community
Take advantage of Verizon's best-in-class app development support
A streamlined, 14 day to market process makes app distribution fast and easy
Join now and get one step closer to millions of Verizon customers
http://p.sf.net/sfu/verizon-dev2dev 
_______________________________________________
Ltp-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list
#1 lore raw
Quoted 5 lines · ----- "liubo

Command "ar -tv" 's output doesn't match with "ls -ln" 's output on item
"permission".

s/-$permissions/-$permissions./

This strange dot only appears in RHEL6, I don't see this dot in other distros or releases.

Thanks,
Caspar

Quoted 42 lines

This patch fixed the bug.

---
 testcases/commands/ade/ar/ar01 |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
testcases/commands/ade/ar/ar01 +1 -1
index c8f85eb..c393959 100755
@@ -584,7 +584,7 @@ ar -tv $TCtmp/lib.a |
 while
 read permissions uid size month day time year file_name
 do
-echo "-$permissions;$uid;$size;$month;$day;$time;$file_name"
+echo "-$permissions.;$uid;$size;$month;$day;$time;$file_name"
 done >> $TCtmp/lib.a.stdout
 ttest
 
Signature · 18 lines
1.6.2.2






------------------------------------------------------------------------------
This SF.Net email is sponsored by the Verizon Developer Community
Take advantage of Verizon's best-in-class app development support
A streamlined, 14 day to market process makes app distribution fast
and easy
Join now and get one step closer to millions of Verizon customers
http://p.sf.net/sfu/verizon-dev2dev 
_______________________________________________
Ltp-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list
Signature · 19 lines
/-------------------------------------------\
| Name: Caspar Zhang                        |
| Position: Kernel Qualification Engineer   |
| IRC: czhang on #kernel-qe, #eng-china     |
| Phone: +86-10-6260-8150                   |
| Cellphone: +86-1381-073-0090              |
\-------------------------------------------/


------------------------------------------------------------------------------
This SF.Net email is sponsored by the Verizon Developer Community
Take advantage of Verizon's best-in-class app development support
A streamlined, 14 day to market process makes app distribution fast and easy
Join now and get one step closer to millions of Verizon customers
http://p.sf.net/sfu/verizon-dev2dev 
_______________________________________________
Ltp-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list
#2 lore raw
Quoted 11 lines · Caspar Zhang
Quoted 5 lines · ----- "liubo

Command "ar -tv" 's output doesn't match with "ls -ln" 's output on item
"permission".

s/-$permissions/-$permissions./

This strange dot only appears in RHEL6, I don't see this dot in other distros or releases.

Is this perhaps because of a version upgrade?
Thanks,
-Garrett

Quoted 53 lines
Quoted 31 lines

This patch fixed the bug.

---
 testcases/commands/ade/ar/ar01 |    2 +-

 1 files changed, 1 insertions(+), 1 deletions(-)
testcases/commands/ade/ar/ar01 +0 -0
index c8f85eb..c393959 100755
@@ -584,7 +584,7 @@ ar -tv $TCtmp/lib.a |

 while
 read permissions uid size month day time year file_name do

testcases/commands/ade/ar/ar01 +1 -1
-echo "-$permissions;$uid;$size;$month;$day;$time;$file_name"
+echo "-$permissions.;$uid;$size;$month;$day;$time;$file_name"

 done >> $TCtmp/lib.a.stdout
 ttest

--
1.6.2.2

Quoted 11 lines

------------------------------------------------------------------------------
This SF.Net email is sponsored by the Verizon Developer Community Take advantage of Verizon's best-in-class app development support A streamlined, 14 day to market process makes app distribution fast and easy
Join now and get one step closer to millions of Verizon customers
http://p.sf.net/sfu/verizon-dev2dev
_______________________________________________
Ltp-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list

--
/-------------------------------------------\

| Name: Caspar Zhang                        |
| Position: Kernel Qualification Engineer   |
| IRC: czhang on #kernel-qe, #eng-china     |
| Phone: +86-10-6260-8150                   |
| Cellphone: +86-1381-073-0090              |

\-------------------------------------------/

Quoted 11 lines

------------------------------------------------------------------------------
This SF.Net email is sponsored by the Verizon Developer Community Take advantage of Verizon's best-in-class app development support A streamlined, 14 day to market process makes app distribution fast and easy Join now and get one step closer to millions of Verizon customers
http://p.sf.net/sfu/verizon-dev2dev
_______________________________________________
Ltp-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list

------------------------------------------------------------------------------
This SF.Net email is sponsored by the Verizon Developer Community Take advantage of Verizon's best-in-class app development support A streamlined, 14 day to market process makes app distribution fast and easy Join now and get one step closer to millions of Verizon customers
http://p.sf.net/sfu/verizon-dev2dev
_______________________________________________
Ltp-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list

author
#3 lore raw
Quoted 11 lines · Garrett Cooper
Quoted 9 lines · Caspar Zhang
Quoted 6 lines · ----- "liubo

Command "ar -tv" 's output doesn't match with "ls -ln" 's output on item
"permission".

s/-$permissions/-$permissions./

Quoted 9 lines
Quoted 3 lines

This strange dot only appears in RHEL6, I don't see this dot in other distros or releases.

Is this perhaps because of a version upgrade?
Thanks,
-Garrett

Yes, this problem does occur because of the version... In binutils-2.19.51.0.2, the strange dot appears. In binutils-2.17.50.0.18, the strange dot does not appear. And these cause the dismatch.

Thanks,
Liu Bo

Quoted 52 lines
Quoted 52 lines
Quoted 30 lines

This patch fixed the bug.

---
 testcases/commands/ade/ar/ar01 |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
testcases/commands/ade/ar/ar01 +1 -2
index c8f85eb..c393959 100755
@@ -584,7 +584,7 @@ ar -tv $TCtmp/lib.a |
 while
 read permissions uid size month day time year file_name
 do
-echo "-$permissions;$uid;$size;$month;$day;$time;$file_name"
+echo "-$permissions.;$uid;$size;$month;$day;$time;$file_name"
 done >> $TCtmp/lib.a.stdout
 ttest
 
--

1.6.2.2

Quoted 12 lines

------------------------------------------------------------------------------
This SF.Net email is sponsored by the Verizon Developer Community Take advantage of Verizon's best-in-class app development support A streamlined, 14 day to market process makes app distribution fast and easy
Join now and get one step closer to millions of Verizon customers
http://p.sf.net/sfu/verizon-dev2dev
_______________________________________________
Ltp-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list

--
/-------------------------------------------\

| Name: Caspar Zhang                        |
| Position: Kernel Qualification Engineer   |
| IRC: czhang on #kernel-qe, #eng-china     |
| Phone: +86-10-6260-8150                   |
| Cellphone: +86-1381-073-0090              |

\-------------------------------------------/

Quoted 15 lines
Quoted 12 lines

------------------------------------------------------------------------------
This SF.Net email is sponsored by the Verizon Developer Community Take advantage of Verizon's best-in-class app development support A streamlined, 14 day to market process makes app distribution fast and easy Join now and get one step closer to millions of Verizon customers
http://p.sf.net/sfu/verizon-dev2dev
_______________________________________________
Ltp-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list

------------------------------------------------------------------------------
This SF.Net email is sponsored by the Verizon Developer Community Take advantage of Verizon's best-in-class app development support A streamlined, 14 day to market process makes app distribution fast and easy Join now and get one step closer to millions of Verizon customers
http://p.sf.net/sfu/verizon-dev2dev

_______________________________________________
Ltp-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list