[BusyBox 0006254]: tac allows stdin to be specified more than once (mismatch with coreutils)
bugs at busybox.net
bugs at busybox.net
Tue Nov 11 21:30:42 UTC 2008
The following issue has been SUBMITTED.
======================================================================
http://busybox.net/bugs/view.php?id=6254
======================================================================
Reported By: pgbovine
Assigned To: BusyBox
======================================================================
Project: BusyBox
Issue ID: 6254
Category: Standards Compliance
Reproducibility: always
Severity: minor
Priority: normal
Status: assigned
======================================================================
Date Submitted: 11-11-2008 13:30 PST
Last Modified: 11-11-2008 13:30 PST
======================================================================
Summary: tac allows stdin to be specified more than once
(mismatch with coreutils)
Description:
the '-' argument to tac tells it to read from stdin. coreutils does not
allow '-' to be specified more than once in a given invocation. e.g.,:
Coreutils behavior:
$ echo 'hello' | tac -
hello
$ echo $?
0
(regular behavior, exits with successful 0 exitcode)
$ echo 'hello' | tac - -
tac: cannot create temporary file `/tmp/tacBdLMmJ': Invalid argument
hello
$ echo $?
1
(error due to second '-', exits with 1)
In contrast, busybox doesn't seem to complain about the extra '-':
Busybox behavior:
$ echo 'hello' | ./busybox tac -
hello
$ echo $?
0
$ echo 'hello' | ./busybox tac - -
hello
$ echo $?
0
======================================================================
Issue History
Date Modified Username Field Change
======================================================================
11-11-08 13:30 pgbovine New Issue
11-11-08 13:30 pgbovine Status new => assigned
11-11-08 13:30 pgbovine Assigned To => BusyBox
======================================================================
More information about the busybox-cvs
mailing list