[BusyBox] Bug Report:BB 1.00 sed(address "$" matches end of all input files)
Hiroshi Ito
ito at mlb.co.jp
Tue Nov 2 09:48:56 UTC 2004
Hello, Rob.
I found another bug.
---BB's sed---
/tmp # (echo 1; echo 2; echo 3) > a
/tmp # sed -n -e '$ p' a a
3 <= $ matches end of first file.
3
/tmp # sed -n -e '3,4 p' a a
3 <= good.
1
/tmp # sed -n -e '2,$ p' a a
2
3 <= $ matched end of first file.
/tmp # sed -n -e '$,4 p' a a a
3 <= $ matched end of first file.
1
3 <= $ matched end of second file.
3
/tmp #
---GNU sed---
[root at tatung root]# (echo 1; echo 2; echo 3) > a
[root at tatung root]# sed -n -e '$ p' a a
3
[root at tatung root]# sed -n -e '3,4 p' a a
3
1
[root at tatung root]# d -n -e '2,$ p' a a
-bash: d: command not found
[root at tatung root]# sed -n -e '2,$ p' a a
2
3
1
2
3
[root at tatung root]# sed -n -e '$,4 p' a a a
3
[root at tatung root]#
--------
Hiroshi Ito
Media Lab. Inc.,
URL http://www.mlb.co.jp ( Sorry, Japanese only. )
TEL +81-3-5294-7255 FAX +81-3-5294-7256
More information about the busybox
mailing list