Project

General

Profile

Bug #3791

/bin/sh's builtin 'rm' busted: 'rm -f' without arguments return error

Added by Stefano Lattarini about 6 years ago. Updated about 6 years ago.

Status:
New
Priority:
High
Assignee:
-
Category:
cmd - userland programs
Start date:
2013-05-27
Due date:
% Done:

0%

Estimated time:
Difficulty:
Bite-size
Tags:
needs-triage

Description

  • How to reproduce:

    Check that rm is actually a built-in:

    $ /bin/sh 'type rm'
    rm is a shell builtin version of /usr/xpg4/bin/rm
    Look it misbehave:
    $ /bin/sh 'rm -f'; echo st = $?
    Usage: rm [-cFdfirRuv] file ...
    st = 2
  • Good news:

    The issue is not shared by the 'rm' executables on the system:

    $ /bin/rm -f; echo st = $?
    st = 0
    $ /usr/xpg4/bin/rm -f; echo st = $?
    st = 0
  • Version details:

    $ cat /etc/release
    OpenIndiana Development oi_151.1.7 X86 (powered by illumos)
    Copyright 2011 Oracle and/or its affiliates. All rights reserved.
    Use is subject to license terms.
    Assembled 03 October 2012

  • Why high priority:

    It's worth noting that future version of Automake will start assuming
    that "rm -f" with further arguments works OK; so, packages
    bootstrapped with those future Automakes will not be able to build
    properly when the Illumos shell is in use, unless this bug is fixed.

History

#1

Updated by Stefano Lattarini about 6 years ago

#2

Updated by Irek Szczesniak about 6 years ago

The issue was fixed by AT&T in ast-ksh.20120214, together with a series of related fixes to pass the latest VSC test suite for SUS conformance.

#3

Updated by Stefano Lattarini about 6 years ago

Thanks, and sorry for the noise.

Stefano

Also available in: Atom PDF