两个问题(1. source command, 2. process substitution)

两个问题(1. source command, 2. process substitution)

dearvoid你好:
     问题1:在shell下直接执行command和使用 .  filename [arguments] 或 source filename [arguments]有什么区别?
   
     问题2: Process Substitution
       Process substitution is supported on systems that support  named  pipes
       (FIFOs)  or the /dev/fd method of naming open files.  It takes the form
       of <(list) or >(list).  The process list is run with its input or  out-
       put connected to a FIFO or some file in /dev/fd.  The name of this file
       is passed as an argument to the current command as the  result  of  the
       expansion.   If the >(list) form is used, writing to the file will pro-
       vide input for list.  If the <(list) form is used, the file  passed  as
       an argument should be read to obtain the output of list.

       When  available,  process substitution is performed simultaneously with
       parameter and variable expansion, command substitution, and  arithmetic
       expansion.
       能够举个实例?      
". foo.sh" 在当前 shell 里面执行, "./foo.sh" 要启动一个子进程:
复制内容到剪贴板
代码:
[color=blue]-(guest@mac:tty1)-(tmp)-
[3833 0] %[/color] cat foo.sh
#!/bin/bash

echo " PID = $$"
echo "PPID = $PPID"
[color=blue]-(guest@mac:tty1)-(tmp)-
[3833 0] %[/color] echo $$
3833
[color=blue]-(guest@mac:tty1)-(tmp)-
[3833 0] %[/color] . foo.sh
PID = 3833
PPID = 3574
[color=blue]-(guest@mac:tty1)-(tmp)-
[3833 0] %[/color] ./foo.sh
PID = 32626
PPID = 3833
[color=blue]-(guest@mac:tty1)-(tmp)-
[3833 0] %[/color]
      
发帖请突出主题. 不相关的问题可以分两个主题发帖. 第二个问题晚上给你回复      
关于 process substitution, 参考这个链接吧, 我怕自己解释不清       
十分感谢!dearvoid,单位由于工作需要,要我编写一个简单的UNIX使用手册,由于我的水平十分有限,进度十分缓慢,遇到很多问题,还需要多指教,如果编写完成,我将材料邮寄给你,请您帮助修改,不知是否打扰。
谢谢!