× Heads up!

Aqua Data Studio / nhilam

Follow
IDE for Relational Databases
×
aquaclusters.josekibold reported 2012-07-03T20:34:41Z  · last modified 2012-07-19T16:09:29Z

more, tail and exec with output redirection using binary files


Dev
Fun Fun
funfun
QA
Niels Gron
NielsGron
Priority Low
Complexity Unknown
Component App - FluidShell
Version 12.0

When trying to use the more, tail and exec commands with output redirection using binary files the written content is invalid.

Examples:

more /tmp/file.mp3 > /tmp/file_out.mp3
file_out.mp3 is not playable, it works if executing the same command in Bash

tail -100 /tmp/file.mp3 > /tmp/file_out.mp3
the same as above, here make sure that the indicated number is big enough so it doesn't truncate the file

exec more /tmp/file.mp3 > /tmp/file_out.mp3

Please note that the cat, tee and grep commands are working fine in similar situations:
cat /tmp/file.mp3 > /tmp/file_out.mp3
cat /tmp/file.mp3 | tee > /tmp/file_out.mp3
grep "" /tmp/file.mp3 > /tmp/file_out.mp3
(equivalent in Bash: grep -a "" /tmp/file.mp3 > /tmp/file_out.mp3)

---

Related issues:
Issue #7014 - Passing binary file to more and tail caused NPE in Term
Issue #7009 - NPE on cat command
Issue #6853 - Cat multiple mp3 files & streaming output to another mp3 file generates an invalid file

Issue #7174

Closed
Fixed
Resolved 2012-07-14T05:27:23Z
 
 
Completion
No due date
Fixed Build trunk/28102
No time estimate

About AquaClusters Privacy Policy Support Version - 19.0.2-4 AquaFold, Inc Copyright © 2007-2017