|
发表于 2004-6-22 12:13:51
|
显示全部楼层
理解一下各种shell间的关系:
- /home/lee#ls -l $(</etc/shells)
- -rwxr-xr-x 1 root root 92444 2003-02-06 /bin/ash
- -rwxr-xr-x 1 root root 626028 2003-02-11 /bin/bash[color=green]
- lrwxrwxrwx 1 root root 4 5月 8 09:23 /bin/bash2 -> bash
- lrwxrwxrwx 1 root root 3 5月 8 09:24 /bin/bsh -> ash[/color]
- lrwxrwxrwx 1 root root 4 5月 8 09:29 /bin/csh -> tcsh
- -rwxr-xr-x 1 root root 180820 2003-01-25 /bin/ksh[color=green]
- lrwxrwxrwx 1 root root 4 5月 8 09:23 /bin/sh -> bash[/color]
- -rwxr-xr-x 1 root root 316276 2003-01-25 /bin/tcsh
- -rwxr-xr-x 1 root root 2912 2003-02-25 /sbin/nologin
复制代码
事实上,/bin/sh是不存在的,它实际上指向的是/bin/bash,有这个连接,不过是为了人们的习惯而已!
sh的扩展能力和重定向的能力,交互性远远不能和bash相比,出现的错误提示也说明了这点!
line 4: syntax error near unexpected token `<' |
|