Gary Young writes:
>
> #!/bin/sh
> /usr/bin/cvs \
>   `ls -d /cm/vault/* \
>    | sed '1,$s/.*/--allow-root=&/'` \
>   pserver

The following is simpler and a bit more efficient:

#!/bin/sh
exec /usr/bin/cvs `for f in /cm/vault/*; do echo --allow-root=$f; done` pserver

-Larry Jones

You don't get to be Mom if you can't fix everything just right. -- Calvin

Reply via email to