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

Re: Learning Scripting



On 5/15/06, Anil Gupte <anil-list@icinema.com> wrote:
BlankHi all:

what am I doing worng here?  Here is my script:
[...]
count=$(#check)
  count=${#check}

With parentheses, the shell is interpreting "#check" as a command,
which is a commented-out line.  With braces, it's a parameter
evaluation.

I haven't checked if anything else in the script is incorrect.

--
Michael A. Marsh
http://www.umiacs.umd.edu/~mmarsh
http://mamarsh.blogspot.com



Reply to: