Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Bash - Permission denied

4 views
Skip to first unread message

mike

unread,
Sep 16, 2009, 1:15:49 PM9/16/09
to
I know this has been addressed before, but I couldn't find an answer
that suits my particular situation.
Without further ado, here is the input/output:

----------
bash-2.04$ cat > foo<<BAR
> lkjasdf;lkj
> BAR
c:/djgpp/tmp/sh103386: Permission denied (EACCES)
bash-2.04$ ls c:/djgpp/tmp/
remove.me sh103386 sh530876 sh530900 sh872942 sh873219
----------

This problem occurs under Windows ME (9x), in a dos/bash box. When I
do the same thing in DosBox, under Linux (same dirs/files), I *don't*
get the error. ??

Eli Zaretskii

unread,
Sep 16, 2009, 1:35:55 PM9/16/09
to dj...@delorie.com
> From: mike <topher...@gmail.com>
> Date: Wed, 16 Sep 2009 10:15:49 -0700 (PDT)

>
> bash-2.04$ cat > foo<<BAR
> > lkjasdf;lkj
> > BAR
> c:/djgpp/tmp/sh103386: Permission denied (EACCES)
> bash-2.04$ ls c:/djgpp/tmp/
> remove.me sh103386 sh530876 sh530900 sh872942 sh873219

I cannot reproduce this on XPSP2. What does "ls -l bash.exe" say
about your Bash?

mike

unread,
Sep 18, 2009, 11:49:01 PM9/18/09
to

> What does "ls -l bash.exe" say

In Windows ME MS-DOS Prompt window (running \djgpp\bin\bash.exe of
course):

-rwxr-xr-x 1 dosuser root 567808 May 13 2008 bash.exe

In Linux (kernel 2.6) under DOSBox 0.72 (running the same bash.exe
above):

-rwxr-xr-x 1 dosuser root 567808 May 13 2008 bash.exe

Eli Zaretskii

unread,
Sep 19, 2009, 3:02:53 AM9/19/09
to dj...@delorie.com
> From: mike <topher...@gmail.com>
> Date: Fri, 18 Sep 2009 20:49:01 -0700 (PDT)

>
>
> > What does "ls -l bash.exe" say
>
> In Windows ME MS-DOS Prompt window (running \djgpp\bin\bash.exe of
> course):
>
> -rwxr-xr-x 1 dosuser root 567808 May 13 2008 bash.exe

That's the same version I have. Maybe this is indeed something
specific to Windows/ME. Perhaps try the binary from the latest port
in beta/v2gnu directory on DJGPP sites.

mike

unread,
Sep 19, 2009, 4:33:37 PM9/19/09
to
> Perhaps try the binary from the latest port
> in beta/v2gnu directory on DJGPP sites.

IT WORKED!! (v205bbr2)
Even the keyboard works; the backspace and arrow keys didn't work in
v204, but they do now.

Thank you.

0 new messages