| Anonymous | Login | Signup for a new account | 11-10-2008 11:14 PST |
| Main | My View | View Issues | Change Log | Docs |
| Viewing Issue Simple Details [ Jump to Notes ] | [ View Advanced ] [ Issue History ] [ Print ] | ||||||||
| ID | Category | Severity | Reproducibility | Date Submitted | Last Update | ||||
| 0001314 | [BusyBox] Other | major | always | 04-13-07 13:19 | 04-13-07 14:35 | ||||
| Reporter | kiltedknight | View Status | public | ||||||
| Assigned To | BusyBox | ||||||||
| Priority | normal | Resolution | fixed | ||||||
| Status | closed | Product Version | 1.4.x | ||||||
| Summary | 0001314: sed output incorrect in substitution | ||||||||
| Description |
Running the recently patched sed given the following input (3 lines): 6f 0e fc c6 dd c6 23 af 76 5a 1f e6 6f 34 e2 a3 47 ff 17 ba 8c f7 7e d1 61 00 00 and the following command: sed -e 's/ *$//g' -e 's/ \(..\)/\\x\1/g' -e 's/^\(.*\)$/"\1"/' Resulting output: "\x6f\x0e\xfc\xc6\xdd\xc6\x23\xaf\x76\x5a\x1f\xe6\x6f\x34\xe2\xa3" "\x47\xff\x17\xba\x8c\xf7\x7e\xd1\x61\x00\x00\x \x \x \x \x " "" When run on a linux box, the resulting output is: "\x6f\x0e\xfc\xc6\xdd\xc6\x23\xaf\x76\x5a\x1f\xe6\x6f\x34\xe2\xa3" "\x47\xff\x17\xba\x8c\xf7\x7e\xd1\x61\x00\x00" "" Adding an additional "-e 's/\\x //g'" does not remove it from the output either. Only piping it to a new sed command will remove the excess "\x " from the end. |
||||||||
| Additional Information | I'm poking around to see if I can find a reason for it. | ||||||||
| Attached Files | |||||||||
|
|
|||||||||
| Copyright © 2000 - 2006 Mantis Group |