234 reputation
110
bio website hlangeveld.nl
location Vathorst,Netherlands
age
visits member for 2 years, 10 months
seen Dec 15 at 14:47

I love coding, whether it is in (korn) shell + [ng]awk, bash, perl or python.

My policy when answering questions is to include working and readable code. If you ever find a line of code here that doesn't run, tell me.


Oct
16
revised set -xv behavior in ksh vs bash
More detail about tracing functions in ksh93
Oct
16
suggested approved edit on set -xv behavior in ksh vs bash
Sep
27
comment Is there a difference between read, head -1, and sed 1q?
tl;dr: read is a builtin and skips the overhead and bookkeeping involved with starting a new process.
Sep
27
comment echo test | stty -echo -> stty: standard input: Inappropriate ioctl for device
system( qw( stty -echo < /dev/tty) ); is a possible workaround, but the script needs to restore the echo afterwards. Using expect may be a better fit.
Sep
24
awarded  Autobiographer
Jul
12
revised Problem when splitting command with backslash in unix prompt
Render as Plain text without highlights
Jul
12
suggested approved edit on Problem when splitting command with backslash in unix prompt
Jun
29
revised How can I trick a process into thinking a file doesn't exist?
Moved trailing comment out of the code block. (I could have split the comment to get rid of hor. scrolling. This is just as effective.)
Jun
29
comment How can I trick a process into thinking a file doesn't exist?
What is the worst thing that could go wrong? I've literally seen that happen. In production.
Jun
29
suggested approved edit on How can I trick a process into thinking a file doesn't exist?
Jun
24
comment How do I configure logging for ulimits?
With thanks to the Linux Cross Reference project
Jun
24
answered How do I configure logging for ulimits?
Jun
22
answered How to tell “cat” command to not hang on when there is no path provided?
Jun
22
suggested rejected edit on What happens in Bash after calling exit?
Jun
16
awarded  Caucus
May
22
comment ksh, perform action when reaching loop maximal value
Also appears on SO
May
5
comment Threads vs (Forked) Processes
Check out Stackoverflow. There are several Q&A there that have explained part of this.
May
5
answered Threads vs (Forked) Processes
Apr
24
comment Practical usage of `set -k` option in bash
Please focus on the alternative for -k: prefix notation.
Apr
24
comment Practical usage of `set -k` option in bash
Correct perception. The -k allows us to run 30 year old shell scripts without the need to refactor them. Pass temporary environment variables using the prefix syntax instead: var1=x var2=y command ...