Skip to main content
Stéphane Chazelas's user avatar
Stéphane Chazelas's user avatar
Stéphane Chazelas's user avatar
Stéphane Chazelas
  • Member for 13 years, 3 months
  • Last seen this week
509 votes
6 answers
100k views

Why not use "which"? What to use then?

282 votes
3 answers
57k views

Security implications of forgetting to quote a variable in bash/POSIX shells

127 votes
9 answers
13k views

On what systems is //foo/bar different from /foo/bar?

49 votes
1 answer
14k views

What's wrong with var=$(</dev/stdin) to read stdin into a variable?

46 votes
1 answer
8k views

Why the "-" in the "#! /bin/sh -" shebang?

33 votes
2 answers
3k views

Security implications of running perl -ne '...' *

30 votes
4 answers
8k views

How can we know who's at the other end of a pseudo-terminal device?

29 votes
2 answers
7k views

How to execute an arbitrary simple command over ssh without knowing the login shell of the remote user?

29 votes
4 answers
2k views

How to safely use gawk's -i option or @include directive?

26 votes
2 answers
4k views

find . -print0 | xargs -0 cmd vs find . -exec cmd {} +

23 votes
6 answers
8k views

Get the display width of a string of characters

23 votes
3 answers
5k views

find out which file descriptors share the same "open file description"

21 votes
2 answers
2k views

Command to retrieve the list of characters in a given character class in the current locale

21 votes
1 answer
1k views

Slurp-mode in awk?

20 votes
1 answer
2k views

Why does unbuffer -p mangle its input?

19 votes
1 answer
3k views

How to use associative arrays safely inside arithmetic expressions?

19 votes
2 answers
2k views

explanation on chown(1) POSIX spec

19 votes
6 answers
6k views

Store output of a command into a ring-buffer

17 votes
1 answer
4k views

How to log all system calls made by a process and all its descendants with auditd

12 votes
2 answers
12k views

Equivalent of "truss -T" and "truss -U" on Linux?

10 votes
1 answer
543 views

How to display the non-sparse parts of a sparse file?

9 votes
2 answers
1k views

xtrace equivalent in the fish shell

9 votes
1 answer
853 views

On what UNIX-like system / filesystem is the st_blocks field returned by stat() not a number of 512-byte units?

9 votes
3 answers
6k views

How to process JSON with strings containing invalid UTF-8

8 votes
2 answers
8k views

booting qemu/kvm directly from a file system

8 votes
3 answers
3k views

Is it possible to tell Xorg not to listen on the abstract socket

7 votes
1 answer
811 views

select() / poll() timeout stretches on Linux

7 votes
2 answers
1k views

Why does $((0.1)) expand to 0.10000000000000001 in zsh?

6 votes
0 answers
996 views

What chunks are mismatched in a Linux md array?

6 votes
2 answers
1k views

sort all arrays in a JSON file depth-first to get a consistent order