You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've been trying to get db:seed:dump to write to $stdout by passing FILE=/dev/stdout. This sort of works, insofar as if I type
FILE=/dev/stdout rake db:seed:dump
in the terminal, I get the seeds dumped to the terminal. However, if I try to pipe the output to grep, redirect it to a file, or otherwise mess with it, it fails with Errno:EACCESS.
I've been trying to get
db:seed:dump
to write to$stdout
by passingFILE=/dev/stdout
. This sort of works, insofar as if I typein the terminal, I get the seeds dumped to the terminal. However, if I try to pipe the output to
grep
, redirect it to a file, or otherwise mess with it, it fails withErrno:EACCESS
.After some experimentation (see this StackOverflow question), I narrowed the issue down to this line in
DumpMethods.open_io
:Is there a reason we need the
+
("update" mode) here? I monkey-patchedopen_io
to use plainw
instead and it seems fine.The text was updated successfully, but these errors were encountered: