NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: bin/39466: /bin/sh: eval and redirections



The following reply was made to PR bin/39466; it has been noted by GNATS.

From: Aleksey Cheusov <cheusov%tut.by@localhost>
To: gnats-bugs%NetBSD.org@localhost
Cc: 
Subject: Re: bin/39466: /bin/sh: eval and redirections
Date: Fri, 31 Oct 2008 22:30:05 +0200

 I think this bug is more serious than I thought before.
 
    ~>cat /home/cheusov/tmp/1.sh
    #!/bin/sh
 
    cat < /dev/null > /not/exist
    echo $?
    ~>/home/cheusov/tmp/1.sh        
    /home/cheusov/tmp/1.sh: cannot create /not/exist: directory nonexistent
    0
    ~>
 
 HINT: commands that do not need fork (built-ins, like echo, printf etc.)
 work properly.
 
 -- 
 Best regards, Aleksey Cheusov.
 


Home | Main Index | Thread Index | Old Index