| Summary: | sed-4.1.4-r1 seems to be broken somehow... | ||
|---|---|---|---|
| Product: | Gentoo Linux | Reporter: | Niels <nkalle> |
| Component: | [OLD] Core system | Assignee: | Gentoo's Team for Core System packages <base-system> |
| Status: | RESOLVED NEEDINFO | ||
| Severity: | normal | CC: | jakub, nkalle |
| Priority: | High | ||
| Version: | 2005.1 | ||
| Hardware: | All | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Package list: | Runtime testing required: | --- | |
| Attachments: | mdstat as requested | ||
|
Description
Niels
2006-05-19 02:31:52 UTC
I have the Following Problem with sed, if I do:
cat /proc/mdstat | grep -E [a-z]d[a-z][0-9] | sed -e 's/\[[0-9]\]//g' | awk '{print $1, $5, $6}'
I get the following:
md1 hda3[ hdc3[
md0 hda2[ hdc2[
md2 hda1[ hdc1[
I expected to get:
md1 hda3 hdc3
md0 hda2 hdc2
md2 hda1 hdc1
as on Debian, where sed is verison 1.4.5 I guess...
Works fine here...
$ cat /proc/mdstat | grep -E [a-z]d[a-z][0-9] | sed -e 's/\[[0-9]\]//g' | awk '{print $1, $5, $6}'
md1 sdb1 sda1
md5 sdb5 sda5
md6 sda6 sdb6
md9 sdf1 sde1
md3 sda3 sdb3
$ emerge -pv sed
[ebuild R ] sys-apps/sed-4.1.4-r1 USE="-bootstrap -build nls -static" 0 kB
[ebuild R ] sys-apps/sed-4.1.4-r1 -bootstrap -build +nls -static 0 kB the same on the two Systems I have here... strange. post your /proc/mdstat file you're having trouble with as an attachment Created attachment 87324 [details]
mdstat as requested
here's the mdstat, there is nothing unusal about it i guess...
works fine for me ...
$ grep -E '[a-z]d[a-z][0-9]' mdstat
md1 : active raid1 hda3[0] hdc3[1]
md0 : active raid1 hda2[0] hdc2[1]
md2 : active raid1 hda1[0] hdc1[1]
$ grep -E '[a-z]d[a-z][0-9]' mdstat | sed -e 's/\[[0-9]\]//g'
md1 : active raid1 hda3 hdc3
md0 : active raid1 hda2 hdc2
md2 : active raid1 hda1 hdc1
$ grep -E '[a-z]d[a-z][0-9]' mdstat | sed -e 's/\[[0-9]\]//g' | awk '{print $1, $5, $6}'
md1 hda3 hdc3
md0 hda2 hdc2
md2 hda1 hdc1
Well, OK then, it is strange but it doesn't work on these systems. However I did it in Perl... *what* doesnt work post the same thing i posted as run on your system No response from user. |