File: dirfd

package info (click to toggle)
grep 3.12-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 19,556 kB
  • sloc: ansic: 111,824; sh: 13,272; perl: 606; makefile: 394; awk: 71; sed: 16
file content (11 lines) | stat: -rw-r--r-- 234 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
#!/usr/bin/sh

# Test to verify https://bugs.debian.org/1041588
# Thanks to Vincent Lefevre <vincent@vinc17.net>

set -e

TESTDIR=$(mktemp -d)
for i in `seq 100000` ; do : > $TESTDIR/$i ; done
printf x > $TESTDIR/a
grep -r x $TESTDIR