Opened 19 years ago

Closed 19 years ago

Last modified 19 years ago

#57 closed bug (fixed)

No terminal output after a redirect

Reported by: mmlr Owned by: axeld
Priority: normal Milestone: R1
Component: System/Kernel Version:
Keywords: Cc:
Blocked By: Blocking:
Platform: All

Description

After redirecting some command to a file ("echo hello > hello.txt") the stdout is appearantly not restored correctly and following commands don't print their output to the terminal anymore. Tested with both terminals (Haiku Terminal and MiniTerminal).

Change History (4)

comment:1 by axeld, 19 years ago

Resolution: fixed

comment:2 by axeld, 19 years ago

Status: newclosed

comment:3 by axeld, 19 years ago

hrev14313 fixes this; our F_DUPFD, dup(), and dup2() calls didn't clear the close-on-exec flag as required by POSIX.

comment:4 by korli, 19 years ago

Tested OK (only reproduced with bash builtins commands though)

Note: See TracTickets for help on using tickets.