Sourcing a Directory
Dennis Kaarsemaker
dennis at kaarsemaker.net
Mon Jun 13 11:36:12 UTC 2005
On ma, 2005-06-13 at 13:17 +0200, Morten W. J. wrote:
> >
> > for file in ~/.bash_profile_pieces/*; do source $file; done
>
> That will work for directories with few files, but eventually
> your ./xyz/abc/*
> URL might expand to more arguments than you shell can handle. That
> will break
> the script.
How many files do you think a .bash_profile_parts will be?? If the
matching breaks, what about all the sourcing that needs to be done...
If this won't wotk i would rather go for run-parts (there is a run-parts
that works on non-executable files in /etc/X11/Xsession)
--
Dennis K.
- Linux for human beings: http://www.ubuntulinux.org
- Linux voor normale mensen: http://www.ubuntulinux.nl
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
URL: <https://lists.ubuntu.com/archives/ubuntu-users/attachments/20050613/7b40ccce/attachment.sig>
More information about the ubuntu-users
mailing list