[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: function name bug ?
From: |
Chris F.A. Johnson |
Subject: |
Re: function name bug ? |
Date: |
Thu, 31 Jul 2008 03:45:09 +0000 |
User-agent: |
slrn/0.9.8.1 (Linux) |
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)
- Re: function name bug ?,
Chris F.A. Johnson <=