Reputation
1,356
Top tag
Next privilege 2,000 Rep.
Edit questions and answers
Badges
7 17
Newest
 Revival
Impact
~70k people reached

May
21
comment Why is nullglob not default?
I get the impression some think it should be obvious that nullglob should be enabled by default. I don't think it's obvious. That expansions happen in the shell before command invocation means that expanding to nothing is a less intuitive behavior than the glob remaining unchanged.
Apr
16
accepted Cannot (force) remove directory in Docker build
Apr
13
revised Cannot (force) remove directory in Docker build
edited title
Apr
13
asked Cannot (force) remove directory in Docker build
Apr
10
comment Can't run php cli at webuser but will run as root
This is a little tricky, then. I'm under the impression the problem is environmental more than permissions. Can you compare the output of env in both cases? It might also help to see the contents of that script. Can you share?
Apr
9
comment Can't run php cli at webuser but will run as root
In your tests, did you try to run this from the commandline yourself, both as root and as www? Or are you comparing commandline root to www triggered from a cronjob or fpm?
Mar
29
comment How can I create new shell commands?
Or, create a shell function.
Mar
9
comment Repeatedly execute bash command while there's no output from another process
Can you show how you're using it?
Mar
8
awarded  Revival
Mar
7
revised Repeatedly execute bash command while there's no output from another process
More precise timing
Mar
7
answered Repeatedly execute bash command while there's no output from another process
Mar
7
comment Writing a character N times using the printf command
dd if=/dev/zero bs=5000 count=1 | tr '\0' H
Mar
5
awarded  Yearling
Jan
14
awarded  Pundit
Sep
22
awarded  Notable Question
Aug
26
comment Delete all files in a directory whose name do not match a line in a file list
@CristianCiupitu echo can be misleading. The echo before the rm shows what would really happen. The first echo was redundant, so I removed it.
Aug
26
revised Delete all files in a directory whose name do not match a line in a file list
Remove the redundant echo
Aug
26
comment Delete all files in a directory whose name do not match a line in a file list
@davidva Under what circumstances? Any time you automate deleting things you run the risk of making a mistake, but within the parameters of the question I think my demo proves this approach is sound.
Aug
26
comment Delete all files in a directory whose name do not match a line in a file list
@CristianCiupitu doesn't it? I added a demo showing that it deals very well with whitespace.
Aug
26
revised Delete all files in a directory whose name do not match a line in a file list
Some naysayers in the comments. Give them a demo