I just upgraded my server to FreeBSD 9.0-RC2 64bit and may have stumbled upon a bug.
I SSH into the box and run the following command from cli:
Output
Output:
Now I resize the window so not the whole line is displayed:
Output
Output
Nothing
Is this a bug or is this standard behavior in FreeBSD? This happens with gnu grep as well as bsdgrep.
I only recently installed FreeBSD so I'm not sure if this is normal behavior or a bug. If I run the same command with grep on a Ubuntu box it will show the lines with bash. Both are grep 2.9
I SSH into the box and run the following command from cli:
Code:
ps -u
Output
Code:
USER PID %CPU %MEM VSZ RSS TT STAT STARTED TIME COMMAND
pdoes 1537 0.0 0.1 17572 3876 1 Is 1:37PM 0:00.15 -bash (bash)
pdoes 49162 0.0 0.1 17572 3920 2 Ss 1:48PM 0:00.44 -bash (bash)
pdoes 49691 0.0 0.0 14328 1480 2 R+ 3:12PM 0:00.00 ps -u
Code:
ps -u|grep bash
Output:
Code:
USER PID %CPU %MEM VSZ RSS TT STAT STARTED TIME COMMAND
pdoes 1537 0.0 0.1 17572 3876 1 Is 1:37PM 0:00.15 -bash (bash)
pdoes 49162 0.0 0.1 17572 3920 2 Ss 1:48PM 0:00.44 -bash (bash)
pdoes 49691 0.0 0.0 14328 1480 2 R+ 3:12PM 0:00.00 ps -u
Now I resize the window so not the whole line is displayed:
Code:
ps -u
Output
Code:
USER PID %CPU %MEM VSZ RSS TT STAT STARTED TIME COMM
AND
pdoes 1537 0.0 0.1 17572 3876 1 Is 1:37PM 0:00.15 -ba
pdoes 49162 0.0 0.1 17572 3920 2 Ss 1:48PM 0:00.45 -ba
pdoes 49702 0.0 0.0 14328 1480 2 R+ 3:15PM 0:00.01 ps
Code:
ps -u|grep bash
Output
Nothing
Is this a bug or is this standard behavior in FreeBSD? This happens with gnu grep as well as bsdgrep.
I only recently installed FreeBSD so I'm not sure if this is normal behavior or a bug. If I run the same command with grep on a Ubuntu box it will show the lines with bash. Both are grep 2.9