On 2009.11.08 14:11:56 -0800, Kate Ebneter wrote: > Hi, folks, > > I ran into a weird situation while working on a script, which is best > described with a little snippet from my gitosis-admin repository: > > $ git branch > * master ^^^ > $ branch=$(git branch) > $ echo $branch > gitosis.conf keydir master Your shell expands the *, thus echo sees all the things in the current directory. Use 'echo "$branch"' and you'll see what you expected. Björn -- To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html