| Subject: | Re: function name bug ? |
|---|---|
| From: | "Chris F.A. Johnson" <cfajohnson@xxxxxxxxx> |
| Date: | Thu, 31 Jul 2008 03:45:09 +0000 |
| Newsgroups: | gnu.bash.bug |
On 2008-07-31, christophe malvasio wrote:
> Configuration Information [Automatically generated, do not change]:
> Machine: x86_64
> OS: linux-gnu
> Compiler: gcc
> Compilation CFLAGS: -DPROGRAM='bash' -DCONF_HOSTTYPE='x86_64'
> -DCONF_OSTYPE='linux-gnu' -DCONF_MACHTYPE='x86_64-unknown-linux-gnu'
> -DCONF_VENDOR='unknown' -DLOCALEDIR='/usr/share/locale' -DPACKAGE='bash'
> -DSHELL -DHAVE_CONFIG_H -I. -I. -I./include -I./lib -g -O2
> uname output: Linux xyz 2.6.26-paldo4-x86_64 #1 SMP PREEMPT Sun Jul 27
> 21:05:14 CEST 2008 x86_64 GNU/Linux
> Machine Type: x86_64-unknown-linux-gnu
>
> Bash Version: 3.2
> Patch Level: 33
> Release Status: release
>
> Description:
> cbz (){ echo "why 'cbz' not a valid function name ?";}
> bash: syntax error near unexpected token `('
> abz,caz and cba work
Do you have an alias named 'cbz'? If so, unalias it before
defining the function.
--
Chris F.A. Johnson, webmaster <http://Woodbine-Gerrard.com>
===================================================================
Author:
Shell Scripting Recipes: A Problem-Solution Approach (2005, Apress)
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | Re: function name bug ?, Paul Jarc |
|---|---|
| Next by Date: | Re: set -x output of test operator is irretating, Chet Ramey |
| Previous by Thread: | function name bug ?, christophe malvasio |
| Next by Thread: | Re: function name bug ?, Paul Jarc |
| Indexes: | [Date] [Thread] [Top] [All Lists] |