[DragonFlyBSD - Bug #3034] (New) Tail -n 1 don't work on /proc/curproc/map

bugtracker-admin at leaf.dragonflybsd.org bugtracker-admin at leaf.dragonflybsd.org
Tue May 9 14:52:16 PDT 2017


Issue #3034 has been reported by cpk.

----------------------------------------
Bug #3034: Tail -n 1 don't work on /proc/curproc/map
http://bugs.dragonflybsd.org/issues/3034

* Author: cpk
* Status: New
* Priority: Normal
* Assignee: 
* Category: VFS subsystem
* Target version: 
----------------------------------------
If i run tail -n 1 /proc/curproc/map it will print 10 last lines.(wc says it is 11 but something is wrong here)
But then if i redirect output to file and then tail it it will print correct number of lines.

tail -n 1 /proc/curproc/map |wc -l 
    11     143    1111
tail -n 1 /proc/curproc/map > /tmp/tail-bug && tail -n 1 /tmp/tail-bug |wc 
    1      13      95

uname -a 
DragonFly dfly-0 4.6-RELEASE DragonFly v4.6.0rc2-RELEASE #2: Sun Jul 24 14:47:27 EDT 2016     root at www.shiningsilence.com:/usr/obj/home/justin/release/4_6/sys/X86_64_GENERIC  x86_64





-- 
You have received this notification because you have either subscribed to it, or are involved in it.
To change your notification preferences, please click here: http://bugs.dragonflybsd.org/my/account



More information about the Bugs mailing list