Unix Shell - Re: what's wrong with this script

This is Interesting: Free IT Magazines  
Home > Archive > Unix Shell > March 2005 > Re: what's wrong with this script





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Re: what's wrong with this script
prabhat143@gmail.com

2005-03-28, 6:18 pm

Hi Ed,

Thanks a bunch. At least I knew it was something trivial. :-) What do
you mean when you say always quote a variable? Do you mean

filesToArchive=$HOME/tutoring/newInherit

should be

filesToArchive="$HOME/tutoring/newInherit"

Regards,
Prabhat






Ed Morton wrote:
> prabhat143@gmail.com wrote:
>
which[vbcol=seagreen]
>
> Missing white-space:
>
> if[ ...
>
> should be:
>
> if [ ...
>
> You should also always quote variables, unless you KNOW a good reason


> not to.
>
> Regards,
>
> Ed.


Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com