[haiku-bugs] Re: [Haiku] #13573: The command ":> /" does not fail regardless of the shell

  • From: "schily" <trac@xxxxxxxxxxxx>
  • Date: Mon, 03 Jul 2017 08:51:54 -0000

#13573: The command ":> /" does not fail regardless of the shell
-----------------------------+----------------------------
   Reporter:  schily         |      Owner:  nobody
       Type:  bug            |     Status:  new
   Priority:  normal         |  Milestone:  Unscheduled
  Component:  System/Kernel  |    Version:  R1/Development
 Resolution:                 |   Keywords:  rootfs
 Blocked By:                 |   Blocking:
Has a Patch:  0              |   Platform:  All
-----------------------------+----------------------------

Comment (by schily):

 It prevents the Bourne Shell to pass it's compliance test.

 POSIX requires builtin commands to fail in case of a failing I/O
 redirection without exiting the shell.

 Since POSIX does not permit directories to be opened for writing, >/ is
 used to run the test.

--
Ticket URL: <https://dev.haiku-os.org/ticket/13573#comment:3>
Haiku <https://dev.haiku-os.org>
The Haiku operating system.

Other related posts: