brent timothy saner on 23 Apr 2010 12:05:58 -0700


[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

Re: [PLUG] Bash script problems - no "function" support?


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 04/23/10 14:01, Mike Leone wrote:

> So ... what? I have a weird link somewhere? Is the link called "sh" 
> fubarred up? How can I tell?


root@houseoftherisingson:~# ls -l `which sh`;ls -l `which bash`
lrwxrwxrwx 1 root root 4 May 12  2008 /bin/sh -> bash
- -rwxr-xr-x 1 root root 813912 May 12  2008 /bin/bash

compare to your results of:

# ls -l `which sh`;ls -l `which bash`


if it points to a wrong place (it's possible mine's a fluke, because
it's on a VPS and not a "real" install), you can simply fix it by rm'ing
/bin/sh and ln -s /bin/bash /bin/sh
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.15 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkvR74wACgkQ8u2Zh4MtlQofNACgg8JmgXzGB5k+zJh3b40fnV5S
EnkAn3ibDHZHk3bLwobLPqxtXwWK7Vg6
=j6gh
-----END PGP SIGNATURE-----
___________________________________________________________________________
Philadelphia Linux Users Group         --        http://www.phillylinux.org
Announcements - http://lists.phillylinux.org/mailman/listinfo/plug-announce
General Discussion  --   http://lists.phillylinux.org/mailman/listinfo/plug