Sourcing a Directory
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)
- Linux for human beings: http://www.ubuntulinux.org
- Linux voor normale mensen: http://www.ubuntulinux.nl
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 189 bytes
Desc: This is a digitally signed message part
More information about the ubuntu-users