Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 368667

Summary: libbash doesn't check the command separator in function bodies
Product: Gentoo Hosted Projects Reporter: Mu Qiao (RETIRED) <qiaomuf>
Component: libbashAssignee: Petteri Räty (RETIRED) <betelgeuse>
Status: RESOLVED OBSOLETE    
Severity: trivial    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Mu Qiao (RETIRED) gentoo-dev 2011-05-25 09:41:27 UTC
qiaomuf@puma ~/repository/libbash $ function foo() { : }
> ;
-bash: syntax error near unexpected token `;'
qiaomuf@puma ~/repository/libbash $ function foo() { :
> }
qiaomuf@puma ~/repository/libbash $ function foo() { :; }
Comment 1 Pacho Ramos gentoo-dev 2018-01-25 17:58:20 UTC
Developer retired (and his mail address is not active anymore)