Re: Installation Instructions

Jan Schneider <[email protected]> Mon, 15 Nov 2004 11:06:58 +0100
Newsgroups gmane.comp.horde.chora
Message-ID <[email protected]>
Zitat von Gerard Samuel <[email protected]>:

> Jan Schneider wrote:
>
>> Zitat von Gerard Samuel <[email protected]>:
>>
>>> I've been installing/using Chora for a while now, and for some reason,
>>> the instructions to copy the config files
>>> for f in *.dist; do cp $f `basename $f .dist`; done
>>> doesn't work on my system, and I usually end up copying them by hand.
>>
>>
>> Why doesn't it work?
>
>
> Im not fluent on shell scripting, but this is what I get on FreeBSD ->
> hivemind# for f in *.dist ; do cp $f `basename $f .dist` ; done
> for: Command not found.
> f: Undefined variable.
>
> I dont have the "for" command on my system.

You're probably using a C shell. Can you try the following:

foreach f (*.dist); cp $f `basename $f .dist`; end

Jan.

-- 
Do you need professional PHP or Horde consulting?
http://horde.org/consulting/
-- 
Chora mailing list - Join the hunt: http://horde.org/bounties/#chora
Frequently Asked Questions: http://horde.org/faq/
To unsubscribe, mail: [email protected]