Bug#549179: mksh: Stop on error when reading directory as script

2010-10-10 Thread Jari Aalto
reopen 549179 thanks > please read the answers in the following thread from the Austin ML: > http://thread.gmane.org/gmane.linux.debian.devel.bugs.general/755640/focus=2959 > > There have been no more followups, so I believe that, when expecting > a file, but given a directory, this is a user err

Bug#549179: mksh: Stop on error when reading directory as script

2010-10-06 Thread Jari Aalto
> >The shell scripts are executed in context of . The POSIX standard > >specifically requires the context to be a readabale in order to run the > >instructions. > > [mirabilos] Yes, but SUSv4 doesn’t say (or I could not find it) > explicitly what to do with directories. Directories are files. > Y

Bug#549179: mksh: Stop on error when reading directory as script

2009-10-04 Thread Thorsten Glaser
Jari Aalto dixit: >Thorsten Glaser writes: >> Yes, but SUSv4 doesn’t say (or I could not find it) explicitly what >> to do with directories. > >It doesn't say about many things: context of symlinks, block devices etc. Indeed. That would probably be implementation-specific behaviour. […] >Does

Bug#549179: mksh: Stop on error when reading directory as script

2009-10-04 Thread Jari Aalto
Thorsten Glaser writes: > Jari Aalto dixit: > >> That is an incorrect reasoning. The POSIX standard mandates ... >> The shell scripts are executed in context of . The POSIX standard >> specifically requires the context to be a readabale in order to run the >> instructions. > > Yes, but SUSv4 does

Bug#549179: mksh: Stop on error when reading directory as script

2009-10-04 Thread Thorsten Glaser
Jari Aalto dixit: >That is an incorrect reasoning. The POSIX standard mandates: […] >The shell scripts are executed in context of . The POSIX standard >specifically requires the context to be a readabale in order to run the >instructions. Yes, but SUSv4 doesn’t say (or I could not find it) explic

Bug#549179: mksh: Stop on error when reading directory as script

2009-10-04 Thread Jari Aalto
>t...@herc:~ $ mkdir tmp; cat tmp; echo $? >0 > >This is consistent with the rest of the operating system, >ans as such not a bug, unless SUSv4 were to specifiy otherwise. FYI, In Debian Linux the cat(1) behaves in standards compliant way[1]: $ cat /tmp cat: /tmp: Is a di

Bug#549179: mksh: Stop on error when reading directory as script

2009-10-04 Thread Jari Aalto
Thorsten Glaser writes: >>tags 549179 wontfix > > t...@herc:~ $ cat tmp; echo $? > 0 > t...@herc:~ $ mksh tmp; echo $? > 0 > > This is consistent with the rest of the operating system, > ans as such not a bug, unless SUSv4 were to specifiy otherwise. That is an incorrect reasoning. The POSIX sta

Bug#549179: mksh: Stop on error when reading directory as script

2009-10-01 Thread Thorsten Glaser
tags 549179 wontfix severity 549179 wishlist thanks Jari Aalto dixit: >mkdir tmp >mksh tmp > >=> No error messages, no status code $? to signify an error. t...@herc:~ $ cat tmp; echo $? 0 t...@herc:~ $ mksh tmp; echo $? 0 This is consistent with the rest of the operating system, ans

Bug#549179: mksh: Stop on error when reading directory as script

2009-10-01 Thread Jari Aalto
Package: mksh Version: 38.3-1 Severity: normal mkdir tmp mksh tmp => No error messages, no status code $? to signify an error. Please signal an error and terminate on non-zero exit code. An example from Bash: bash tmp tmp/: tmp/: is a directory C.f. This bug was found from o