Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: Anyone familiar with auto-fu.zsh project?



dana did some tests on this:

#include <stdio.h>
#include <unistd.h>
int main() {
  pid_t ppid = getppid();
  printf("%d\n", ppid);
  return 0;
}

Effects:
~ exec {FD2}< <( ./gettpid; : ); cat <&$FD2; echo $$
37343
43163

~ exec {FD2}< <( ./gettpid ); cat <&$FD2; echo $$
43163
43163

Wonder why ":" is needed, to gettpid be not the last command.

-- 
Best regards,
Sebastian Gniazdowski



Messages sorted by: Reverse Date, Date, Thread, Author