ASS-U-ME. Never Presume.
The Ubuntu shell is supposed to be a lightweight BASH shell. Until it is documented for FACT that DECLARE was not and will not be implemented, do not close this bug.! -- Roland Hughes, President Logikal Solutions (630)-205-1593 http://www.theminimumyouneedtoknow.com http://www.infiniteexposure.net No U.S. troops have ever lost their lives defending our ethanol reserves. On Wed, 2011-01-19 at 03:54 +0000, Josh Kupershmidt wrote: > Your problem has nothing to do with PostgreSQL. The DECLARE man page you > pulled up describes a SQL-language command (i.e. nothing to do with your > shell -- it only has meaning to a PostgreSQL database). > > I'm betting that if you change the first line of t2.sh from: > #!/bin/sh > > to: > #!/bin/bash > > it will work as expected. The "declare" command is a bash built-in (see > http://www.gnu.org/software/bash/manual/html_node/Bash-Builtins.html > #index-declare-133 ) -- from this example, it looks like it's just not > present in /bin/sh (presumably by design). > > ** Changed in: bash (Ubuntu) > Status: New => Invalid > -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/701965 Title: declare broken in bash -- ubuntu-bugs mailing list [email protected] https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
