brent timothy saner on 23 Apr 2010 11:49:18 -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 13:35, Mike Leone wrote:
> 
> So why are functions not being recognized on my system? Ubuntu 8.04. The 
> shell for this user is explicitly set to "/bin/bash" in /etc/passwd.
> 

run it with bash -x script.sh
and let us know what it spits out. i don't expect it to tell us much,
especially since we already know it's a problem with recognizing
functions, but we're starting at step 1, which is usually a good place
to start.

does it work with any other users? if so, it may be an environment
issue. if not, i'd say something in bash is seriously not happy.

also, try running test.sh with bash instead of sh. it worked for me fine
on an 8.04.4 box, and it appears it does, in fact, link to /bin/bash,
but you never know.

you may need to reinstall bash (or at least the binary, if it's not a
library issue or anything like that).

or you could always switch to zsh! ;)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.15 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkvR66QACgkQ8u2Zh4MtlQrv5gCgxtrk2jv7CtvuwCHu/t2K00jH
NLkAn2UYWRIOgfKerBuQRQ1cZ0a83c0I
=LncC
-----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