> -----Original Message-----
> From: SpCD
> Sent: Sunday, June 08, 2003 7:21 AM
> Subject: Re: [leaf-user] Why this script doesn't work?
> 
> 
> > Just a guess here... but I have seen the above when I 
> > forget to convert my script from DOS (CR/LF) to UNIX (LF) format.
> >
> > Try:
> > # tr -d '\015'  <cbq   >cbq.sh
> > # ./cbq.sh
> 
> THX ! After i convert the file and gave proper atrributes it 
> runs but i get
> error in 71 line :
> Yorg: -root-
> # ./cbq.sh
> ./cbq.sh: 71: Syntax error: "(" unexpected
> 
> Any other guesses? :-)

This looks like the standard bash/ash portability issue.

On line 71, either remove the parens or negate their functional
interpretation by the ash shell by escaping them with backslash. i.e. \(

Steve Cowles


-------------------------------------------------------
This SF.net email is sponsored by:  Etnus, makers of TotalView, The best
thread debugger on the planet. Designed with thread debugging features
you've never dreamed of, try TotalView 6 free at www.etnus.com.
------------------------------------------------------------------------
leaf-user mailing list: [EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/leaf-user
SR FAQ: http://leaf-project.org/pub/doc/docmanager/docid_1891.html

Reply via email to