-
Notifications
You must be signed in to change notification settings - Fork 1
/
standard-tests.txt
73 lines (54 loc) · 1.55 KB
/
standard-tests.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
Options tested for ls/cat/grep analysis
=======================================
These are assumed to be in the 'standard-files' directory, having made the
files/devs using the scripts in there.
ls:
ls
ls -ld
ls -asg dir2 m*
ls -lur . nonexistentfile
ls -tui
ls -f
# For max V6 coverage, want an unreadable directory (chmod 000) and ls -lf that dir.
# Also, files that are very old. (See make_dirs_and_files.sh)
# Other common GNU options from the survey:
# -R --time-style= -1 -A -h --color --full-time -F -S --help --version -L
#
# Less common but used, from the survey:
# -c -n -C -H -G --group-directories-first -m -o --show-control-chars --sort= --time= -w -p --format= -k -si --quoting-style= --block-size -D
#
ls -oAhFSL --color --full-time
ls -1R /dev
ls -l --time-style=full-iso
ls -l --time-style=long-iso
ls -l --time-style=iso
ls -l --time-style=locale
ls -l --time-style=='+%s'
ls --help
ls --version
ls -ltcnkD
ls -C
ls -lG --group-directories-first --time=ctime
ls -H my_filelink
ls -mp --sort=time -w 40
ls -o --show-control-chars
ls --format=horizontal
ls -lh --si --quoting-style=c
ls -l --block-size 256 --quoting-style=shell-always
cat:
cat mbox
cat nonexistentfile
cat mbox make_devices.sh
echo | cat mbox make_devices.sh -
cat make_devices.sh - <&-
grep:
grep foo nonexistentfile
grep -vn nod make_devices.sh
grep -c nod make_devices.sh
# More interesting regexps:
grep "thing.*thing[^f][abc]*$" mbox
grep "affinity$" mbox
grep "spa.*din[^z][a-z, ]*" mbox
echo foo | grep oo
# Commonly-used things in GNU-land:
grep -A 1 -B 1 -r -i -H spandex dir* m*