<HTML><BODY style="word-wrap: break-word; -khtml-nbsp-mode: space; -khtml-line-break: after-white-space; "><BR><DIV><DIV>On Jun 13, 2005, at 7:36 AM, Dennis Kaarsemaker wrote:</DIV><BLOCKQUOTE type="cite"><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">On ma, 2005-06-13 at 13:17 +0200, Morten W. J. wrote:</DIV><BLOCKQUOTE type="cite"><BLOCKQUOTE type="cite"><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">for file in ~/.bash_profile_pieces/*; do source $file; done</DIV></BLOCKQUOTE><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">That will work for directories with few files, but eventually</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">your ./xyz/abc/*<SPAN class="Apple-converted-space"> </SPAN></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">URL might expand to more arguments than you shell can handle. That will break<SPAN class="Apple-converted-space"> </SPAN>the script.</DIV></BLOCKQUOTE><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">How many files do you think a .bash_profile_parts will be?? If the</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">matching breaks, what about all the sourcing that needs to be done...</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; min-height: 14px; "><BR></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">If this won't wotk i would rather go for run-parts (there is a run-parts</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">that works on non-executable files in /etc/X11/Xsession)</DIV></BLOCKQUOTE><BR></DIV><DIV>Thank you very much to all.  I found the answer I was looking for.  It involved a little bit of tweaking of "for file in ~/.bash_profile_pieces/*".  I now have a nice script and a modulized ".bash_profile".  If anyone has any questions as to the actual setup, I'd be more than happy to explain.</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>~Matt</DIV><FONT class="Apple-style-span" color="#0000DD"></FONT></BODY></HTML>