tech-userlevel archive

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

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



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