Reputation
337,465
Next tag badge:
99/100 score
29/20 answers
Badges
57 600 1034
Newest
 Enlightened
Impact
~31.4m people reached

8h
awarded  Enlightened
10h
awarded  Nice Answer
11h
comment How to test if a variable is defined at all in Bash prior to version 4.2 with the nounset shell option?
@Tim Fixed, thanks.
11h
revised How to test if a variable is defined at all in Bash prior to version 4.2 with the nounset shell option?
fixed negation in ${foobar+1} vs error with set -u (thanks Tim); expanded on defined vs declared in bash
13h
awarded  Guru
23h
comment New Apple keyboard layout on Arch Linux
Your layout is set to US. Why don't you open the keyboard configuration interface of whatever desktop environment you're using and switch the keyboard layout to Brazilian? If you need help with that, what environment are you using?
23h
comment Opening Named Pipe with fopen
I'm voting to close this question as off-topic because it's a programming question. You can ask programming questions on Stack Overflow, but you must post complete code that reproduces the problem.
23h
revised Millisecond time in a shell script
edited tags
1d
revised Drop down terminal when mouse hits top border of Desktop
edited tags
1d
comment White-list certain binaries and scripts inside a noexec/nosuid mount?
@user53029 I mean, for a script that starts with #!/bin/bash, call /bin/bash /mnt/dir/script, for a script that starts with #!/usr/bin/env perl, call /usr/bin/env perl /mnt/dir/script, etc.
1d
comment Why does `find . -type f` take longer than `find .`?
@GregoryNisbet In theory yes, but the source code (I've now checked) doesn't do that, presumably because it's a much rarer case.
1d
comment Why does `find . -type f` take longer than `find .`?
@RealSkeptic Has this changed in recent versions? I haven't checked the source, but experimentally, version 4.4.2 in Debian stable does optimize stat calls when it doesn't need them due to directory link counts, and the -noleaf option is documented in the manual.
1d
awarded  Guru
1d
answered set variable inside heredoc and use them outside
1d
answered Keyboard shortcut to paste selected text to SECONDARY clipboard
1d
answered Why does `find . -type f` take longer than `find .`?
1d
revised Carriage returns are prevent sed reading all my files
added 254 characters in body
1d
comment Carriage returns are prevent sed reading all my files
@goro i=${i%foo} sets i to its current value, minus foo at the end. See gnu.org/software/bash/manual/…
1d
answered How do I type arbitrary unicode characters in xterm?
1d
comment Carriage returns are prevent sed reading all my files
@goro I doubt it: that wouldn't insert CR. Are you running under Windows? In what environment?