Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 3 Aug 2007 21:36:47 GMT
From:      "John S. Strock" <jstrock@batc.edu>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   misc/115184: Update to Can't delete certain types of files
Message-ID:  <200708032136.l73LakfK018813@www.freebsd.org>
Resent-Message-ID: <200708032140.l73Le1VI075523@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         115184
>Category:       misc
>Synopsis:       Update to Can't delete certain types of files
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Fri Aug 03 21:40:01 GMT 2007
>Closed-Date:
>Last-Modified:
>Originator:     John S. Strock
>Release:        6.2
>Organization:
Bridgerland Applied Technology College
>Environment:
FreeBSD Server-2.BATC-IT.local 6.2-RELEASE FreeBSD 6.2-RELEASE #0: Tue Feb  6 22:42:34 MST 2007     root@Server-2.BATC-IT.local:/usr/obj/usr/src/sys/Server-2  i386
>Description:
This is an update to the bug I just posted.  I've found a way to remove individual files.
>How-To-Repeat:

>Fix:
To delete an individual file, use the following command:

"rm bogusfilename -filenametodelete"

For example, I create a hyphenated filename using the following command:

"cp realfile -newfile"

"rm -newfile" doesn't work, because "rm" thinks "-newfile" is an option.

To delete, type:

"rm whatevernamehere -newfile"

The "whatevernamehere" could be a legitimate file, or one that doesn't exist, either way it'll delete the 2nd file.

>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200708032136.l73LakfK018813>