Mail Archives: djgpp/2001/06/14/09:00:43
On Thu 14 Jun 2001 14:46, Eli Zaretskii <eliz AT is DOT elta DOT co DOT il> wrote:
> > One simple failing snippet on Win2kNL/sp1:
> >
> > C:\Tmp> cat test.sh
> > if (PATH=.; alias -x) >/dev/null 2>&1; then
> > inksh=true
> > fi
> > C:\Tmp> sh test.sh
> > test.sh: /dev/null: Permission denied (EACCESS)
>
> Does a simple "echo foo > /dev/null" fails as well? How about
> "echo foo >> /dev/null"?
>
> If it does, please write a short test program that does imilar things,
> and step into the I/O functions with a debugger. We must understand
> what's wrong there to devise a solution or a work-around.
C:\Tmp> sh
sh-2.03$ echo Help
Help
sh-2.03$ echo Help >/dev/null
sh: /dev/null: Permission denied (EACCESS)
sh-2.03$ echo Help >>/dev/null
sh-2.03$
HTH
--
H.Merijn Brand Amsterdam Perl Mongers (http://www.amsterdam.pm.org/)
using perl-5.6.1, 5.7.1 & 626 on HP-UX 10.20 & 11.00, AIX 4.2, AIX 4.3,
WinNT 4, Win2K pro & WinCE 2.11 often with Tk800.022 &/| DBD-Unify
ftp://ftp.funet.fi/pub/languages/perl/CPAN/authors/id/H/HM/HMBRAND/
- Raw text -