# [PATCH] Fix sourcing "test-lib.sh" using dash shell in "t3003-ls-files-narrow-match.sh"

3 messages from 2009-01-05 to 2009-01-07. Participants: Christian Couder, Junio C Hamano.
Thread: https://gitlist.dev/t/16992

## Christian Couder, 2009-01-05 13:30

Subject: [PATCH] Fix sourcing "test-lib.sh" using dash shell in "t3003-ls-files-narrow-match.sh"
Message-ID: <20090105143002.8a369535.chriscool@tuxfamily.org>
URL: https://gitlist.dev/e/20090105143002.8a369535.chriscool%40tuxfamily.org

```
dash barfs, on my old Ubuntu box, when "test-lib.sh" is sourced
without "./".

Signed-off-by: Christian Couder <chriscool@tuxfamily.org>
---
 t/t3003-ls-files-narrow-match.sh |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

	This patch applies to "pu".

diff --git a/t/t3003-ls-files-narrow-match.sh b/t/t3003-ls-files-narrow-match.sh
index 9879525..b576bca 100755
--- a/t/t3003-ls-files-narrow-match.sh
+++ b/t/t3003-ls-files-narrow-match.sh
@@ -2,7 +2,7 @@
 
 test_description='This test is for narrow spec matching'
 
-. test-lib.sh
+. ./test-lib.sh
 
 D="$(cd ..;pwd)"/t3003
 
-- 
1.6.1.143.gfd590.dirty

```

## Junio C Hamano, 2009-01-06 08:18

Subject: Re: [PATCH] Fix sourcing "test-lib.sh" using dash shell in "t3003-ls-files-narrow-match.sh"
Message-ID: <7vzli4kftt.fsf@gitster.siamese.dyndns.org>
URL: https://gitlist.dev/e/7vzli4kftt.fsf%40gitster.siamese.dyndns.org
In-Reply-To: <20090105143002.8a369535.chriscool@tuxfamily.org>

```
Christian Couder <chriscool@tuxfamily.org> writes:

> dash barfs, on my old Ubuntu box, when "test-lib.sh" is sourced
> without "./".
>
> Signed-off-by: Christian Couder <chriscool@tuxfamily.org>
> ---
>  t/t3003-ls-files-narrow-match.sh |    2 +-
>  1 files changed, 1 insertions(+), 1 deletions(-)
>
> 	This patch applies to "pu".

Thanks; I hope you don't mind squashing this in to 'Introduce "sparse
patterns"'.

```

## Christian Couder, 2009-01-07 07:29

Subject: Re: [PATCH] Fix sourcing "test-lib.sh" using dash shell in "t3003-ls-files-narrow-match.sh"
Message-ID: <200901070829.16752.chriscool@tuxfamily.org>
URL: https://gitlist.dev/e/200901070829.16752.chriscool%40tuxfamily.org
In-Reply-To: <7vzli4kftt.fsf@gitster.siamese.dyndns.org>

```
Le mardi 6 janvier 2009, Junio C Hamano a écrit :
> Christian Couder <chriscool@tuxfamily.org> writes:
> > dash barfs, on my old Ubuntu box, when "test-lib.sh" is sourced
> > without "./".
> >
> > Signed-off-by: Christian Couder <chriscool@tuxfamily.org>
> > ---
> >  t/t3003-ls-files-narrow-match.sh |    2 +-
> >  1 files changed, 1 insertions(+), 1 deletions(-)
> >
> > 	This patch applies to "pu".
>
> Thanks; I hope you don't mind squashing this in to 'Introduce "sparse
> patterns"'.

No problem.

Thanks,
Christian.

```
