Bugzilla will be upgraded to version 5.0 on a still to be determined date in the near future. The original upgrade date has been delayed.
Bug 959 - /usr/bin/play should use "$@"
/usr/bin/play should use "$@"
Product: Red Hat Linux
Classification: Retired
Component: sox (Show other bugs)
i386 Linux
low Severity low
: ---
: ---
Assigned To: David Lawrence
Depends On:
  Show dependency treegraph
Reported: 1999-01-25 07:05 EST by jmorzins
Modified: 2008-05-01 11:37 EDT (History)
0 users

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 1999-03-19 16:50:07 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description jmorzins 1999-01-25 07:05:47 EST
Red Hat Linux systems ship with a shell script for
/usr/bin/play, which serves as a wrapper around the
/usr/bin/sox program.  The shell script's use of $1
rather than "$@", however, causes /usr/bin/play to reject
any attempts at using command line options.  Since many
programs assume that "play" supports the "-v" option to
set volume, the use of $1 rather than "$@" causes those
programs to produce error messages rather than audio output.
(Exmh, a graphical front-end to the MH mail system shipped
with Red Hat Linux, is one example of a program that tries
to use "play -v" to play .au files.)

The patch included here modifies /usr/bin/play to be
a better imitation of traditional "play" programs.

--- /usr/bin/play       Thu Aug 29 18:38:51 1996
+++ /tmp/play   Mon Jan 25 06:59:45 1999
@@ -1,3 +1,3 @@

-/usr/bin/sox $1 -t .au - > /dev/audio
+/usr/bin/sox "$@" -t .au - > /dev/audio

(This was reported to me on a system which the author
described as "5.x".  I have verified the bug on a 4.2
system.  "rpm -q -f /usr/bin/play" reports "sox-11g-5".)

 Jacob Morzinski                      jmorzins@mit.edu
Comment 1 Bill Nottingham 1999-03-19 16:50:59 EST
using play -v works for me on a 5.9 system.

Note You need to log in before you can comment on or make changes to this bug.