Another bash scripting problem...
Byron Saltysiak
byronsalty at gmail.com
Tue Jun 21 01:43:33 UTC 2005
I believe the 'do' needs to be in the first line of the for loop:
for ...
do
...
done
one question though - what is this supposed to do? I can probably give
you a cleaner script if I knew what you were doing.
- Byron
On 6/20/05, Matthew S-H <mathbymath at aol.com> wrote:
>
> Here is the code:
>
> ---START---
> if test -O ~/.profile_sections;
> then
> for file in ~/.profile_sections/*;
> if test ! -d $file;
> then
> do source $file;
> fi
> done
> fi
> ---END---
>
> Why doesn't this work?
>
>
> Anyone with any help mould be appreciated.
>
> Thanks,
> ~Matt
>
> --
> ubuntu-users mailing list
> ubuntu-users at lists.ubuntu.com
> http://lists.ubuntu.com/mailman/listinfo/ubuntu-users
>
--
Byron
http://byron.saltysiak.com
More information about the ubuntu-users
mailing list