Reputation
211
Top tag
Next privilege 250 Rep.
View close votes
Badges
1 7
Newest
 Scholar
Impact
~12k people reached

  • 0 posts edited
  • 0 helpful flags
  • 64 votes cast
Mar
18
awarded  Scholar
Mar
18
accepted Access to user's session D-bus from their cron commands
Jan
29
comment Why do here-documents attempt shell substitution even on a commented line?
Perhaps better reason why # does not introduce comment in here-document is that it does not introduce comment in quoted string either and here-documents behave as quoted strings.
Jan
28
awarded  Yearling
Jan
27
answered How to find out which unicode codepoints are defined in a TTF file?
Jan
27
comment How to find out which unicode codepoints are defined in a TTF file?
@Sanuuu, the -u option does not appear in --help, but still seems to exist. However (at least in Debian 2.105 build) it seems to only list basic plane (up to U+FFFF). The -g option knows about the extended planes, but that does not work for all fonts.
Dec
23
comment Is there any reason to have a shebang pointing at /bin/sh rather than /bin/bash?
@RuiFRibeiro, nothing is statically linked in Debian. Dash is more limited, but it is limited mainly in interactive features (no completion and such) so that it is faster for scripts.
Dec
18
awarded  Student
Dec
18
asked Access to user's session D-bus from their cron commands
Dec
17
comment Get exit status of process that's piped to another
@camh: In that case correct answer should work all the way back to Bourne Shell!
Dec
16
awarded  Commentator
Dec
16
comment Get exit status of process that's piped to another
@camh: I did. I don't care. The question is not tagged bash, so the answer is incomplete.
Dec
15
awarded  Critic
Dec
15
comment Get exit status of process that's piped to another
The question is not tagged bash.
Dec
15
comment Get exit status of process that's piped to another
There is no $PIPESTATUS in POSIX. Downvoted.
Nov
24
comment Measuring RAM usage of a program
Important note: The "Maximum resident set size" only works since Linux 2.6.32.
Oct
2
comment Is there any UNIX variant on which a child process dies with its parent?
@Gilles: No, I was not, but looking at strace nohup in fact does ignore the signal before it execs the command.
Jun
3
comment Bash syntax error when “else” follows an empty “then” clause
While -exec is often useful, as is xargs, sometimes a shell loop is needed. In which case a while read name loop is the preferred option (in bash with GNU find you can use the -0 option for both; portably you have to give up on newline).
Sep
27
comment find command in linux
@chinmay: There is not. There are it's opposites, the -depth switch which limits search to given depth and -prune command which tells it not to recurse in given directory.
Jun
12
comment How can I use unix tools with Cyrillic text?
@ixtmixilix: I haven't used it myself. There are two parts to using unicode in your case: opening the file so that it returns correct unicode strings (check known codepoint with repr) and using locale-aware character class in the regexp (hm, python3 doc says \w is by default if the pattern is str (unicode in py3) and not bytes).