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)