bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

maybe some of these "case" reactions are no-no's


From: Dan Jacobson
Subject: maybe some of these "case" reactions are no-no's
Date: 09 Apr 2002 21:15:39 +0800
User-agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.1

Maybe some of these "case" reactions are no-no's, maybe not,

In the manual is says
  case word in [ [(] pattern [ | pattern ] ... ) list ;; ]
       ... esac

$ case esac 
> #odd, why is it asking for another line instead of failing?
$ case a in b);;esac
$ case a in b)esac #odd.  what about ;;?
$ case a in b);esac
bash: syntax error near unexpected token `;e'
$ case a in b): esac
> 
$ case a in b)date esac
> 
$ case a in b)date ;esac
$ case b in b)date ;esac
Tue 04  9 21:12:29 CST 2002
-- 
http://jidanni.org/ Taiwan(04)25854780



reply via email to

[Prev in Thread] Current Thread [Next in Thread]