Package: grep Version: 2.5.1.ds2-5 Severity: normal
with many commands, including find, the default is to not recurse symlinks. but: 0 25-Thu-15-15-43 /tmp/grep# ls -lR ..: total 4 drwx------ 2 kpc kpc 4096 05-25 15:09 a lrwxrwxrwx 1 kpc kpc 1 05-25 15:13 b -> a lrwxrwxrwx 1 kpc kpc 7 05-25 15:13 bfile -> a/afile ../a: total 4 -rw------- 1 kpc kpc 6 05-25 15:09 afile 0 25-Thu-15-15-47 /tmp/grep# grep -r hello . ../a/afile:hello ../b/afile:hello ../bfile:hello in the above, i propose that b not be recursed. bfile should still be printed. i propose an option to get the current behavior, just as find has. i also propose a more comprehensive solution in the form of allowing a list of files to grep (which can be - for stdin), thus allowing you to use find and grep to specify the list of files to grep. but i will file that in a separate report. even with the comprehensive solution, i think the default behavior of grep -r should be changed. thanks. -- System Information: Debian Release: 3.1 Architecture: i386 (i686) Shell: /bin/sh linked to /bin/bash Kernel: Linux 2.6.11--from-2.6.9-proc-config-and-menuconfig Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968) Versions of packages grep depends on: ii libc6 2.3.6-7 GNU C Library: Shared libraries grep recommends no packages. -- no debconf information -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]