Reputation
Next privilege 200 Rep.
See reduced ads
Badges
5
Impact
~7k people reached

  • 0 posts edited
  • 0 helpful flags
  • 4 votes cast
Sep
24
awarded  Autobiographer
Sep
14
awarded  Supporter
Jun
13
awarded  Scholar
Jun
13
comment Reevaluate the prompt expression each time a prompt is displayed in zsh
Oh duh! I can't believe I was using double quotes instead of single quotes. Too much Windoze...
Jun
13
accepted Reevaluate the prompt expression each time a prompt is displayed in zsh
Jun
12
awarded  Student
Jun
12
comment Reevaluate the prompt expression each time a prompt is displayed in zsh
I'm following Steve's approach here. You can see the issue that %~ brings up. I'm also running some functions in the prompt.
Jun
12
answered Reevaluate the prompt expression each time a prompt is displayed in zsh
Jun
12
asked Reevaluate the prompt expression each time a prompt is displayed in zsh
Feb
29
comment Linux script or program to shorten filenames
@Kevin So do heredoc's use temp files as indicated here and a few other places? Running a quick test between a herestring and heredoc with time, I got a slightly slower time for the heredoc. Which makes sense if it dumps the contents into a temp file.
Feb
29
comment Linux script or program to shorten filenames
@Kevin I note you used <<< instead of <<. Is there a difference between the two?
Feb
29
comment Linux script or program to shorten filenames
@ChrisDown ok, so what I've called child processes is also synonymous with subshell. Huh. I always thought a subshell was another instance of the shell itself.
Feb
29
comment Linux script or program to shorten filenames
@ChrisDown for the pipemill, yes. running cat - | tail -20 in a shell, then running ps from a separate shell shows cat and tail as child processes, but does not show extra bash processes. I find this confusing, if they are subshelled.
Feb
29
comment Linux script or program to shorten filenames
@ChrisDown see here. According to the wiki article, the piped processes are forked, but it says nothing about running them in their own shells.
Feb
29
comment Linux script or program to shorten filenames
@ChrisDown Oh? I thought that heredocs created a temp file and then redirected stdin of the program. A pipe is just a redirect, so that's a wash, and it now has to spend time creating a temp file. Where did you hear this?
Feb
29
comment Linux script or program to shorten filenames
@Grimlockz This is why you don't want to do everything in a regex. You'll be happier and better off writing a script that uses regexes.
Feb
29
answered Linux script or program to shorten filenames
Dec
29
answered How do I choose specific files in a different directory using bash?
Dec
29
awarded  Teacher
Sep
30
answered What's so special about directories whose names begin with a dot?