Git Bash - ls command not working

3,436 views
Skip to first unread message

Frank Doyle

unread,
Mar 23, 2015, 4:39:07 AM3/23/15
to msy...@googlegroups.com
Hi - unsure if this is the correct forum for this, but grateful for any help offered. 

I've installed Git Bash for Windows but can't seem to use the 'ls' command from the prompt. Other commands seem to work fine ('pwd' etc.) but typing ls and hitting enter seems to just result in a hang. No results are seen and Git Bash itself becomes unresponsive.

Any ideas, please?

Stefan Näwe

unread,
Mar 23, 2015, 5:26:46 AM3/23/15
to Frank Doyle, msy...@googlegroups.com
What does 'type -a ls' (in the Git bash) say?

Stefan
--
----------------------------------------------------------------
/dev/random says: Time is an illusion, lunchtime doubly so.
python -c "print '73746566616e2e6e616577654061746c61732d656c656b74726f6e696b2e636f6d'.decode('hex')"
GPG Key fingerprint = 2DF5 E01B 09C3 7501 BCA9 9666 829B 49C5 9221 27AF

Frank Doyle

unread,
Mar 23, 2015, 5:41:18 AM3/23/15
to Stefan Näwe, msy...@googlegroups.com
Hi Stefan,

Inline images 1

Stefan Näwe

unread,
Mar 23, 2015, 7:16:45 AM3/23/15
to Frank Doyle, msy...@googlegroups.com
Am 23.03.2015 um 10:40 schrieb Frank Doyle:
> On 23 March 2015 at 11:26, Stefan Näwe <stefan...@atlas-elektronik.com <mailto:stefan...@atlas-elektronik.com>> wrote:
>
> Am 23.03.2015 um 09:39 schrieb Frank Doyle:
> > Hi - unsure if this is the correct forum for this, but grateful for any help offered.
> >
> > I've installed Git Bash for Windows but can't seem to use the 'ls' command from the prompt. Other commands seem to work fine ('pwd' etc.) but typing ls and hitting enter seems to just result in a hang. No results are seen and Git Bash itself becomes unresponsive.
> >
> > Any ideas, please?
>
> What does 'type -a ls' (in the Git bash) say?
> Hi Stefan,
>
> Inline images 1

So the solution is clear: call '/bin/ls' explicitly and/or
make sure that '/bin' is in your $PATH *before* '/c/DevKit/bin' (whatever that is...)

HTH,
Stefan
--
----------------------------------------------------------------
/dev/random says: One if by LAN, two if by C.

Frank Doyle

unread,
Mar 24, 2015, 3:11:59 AM3/24/15
to msy...@googlegroups.com, fra...@mukuru.com, stefan...@atlas-elektronik.com
Thanks Stefan - understood and now working fine.
Reply all
Reply to author
Forward
0 new messages