Re: rm "fig[1].gif" fails

From: George Reitsma (g.p.reitsma_at_hetnet.nl)
Date: 11/04/03


Date: Tue, 04 Nov 2003 15:18:14 +0100

greg byshenk wrote:
> George Reitsma <g.p.reitsma@hetnet.nl> wrote:
>
>> Us wrote:
>>
>>>George Reitsma <g.p.reitsma@hetnet.nl> wrote:
>
>
>>>>On one (previous Samba directory) windows created a file fig[1].gif
>>>>
>>>>However I cannot remove it.
>
>
> [...]
>
>
>>>>The same happens when I try:
>
>
>>>>#rm fig\[1\].gif
>>>>#rm "fig[1].gif"
>
>
>>>>or
>
>
>>>>#rm "fig\[1\].gif"
>
>
>>>>Everything else I can delete, only this file remains. Weird enough, I
>>>>can open it with Gimp. Also the a name change gives the same
>>>>problems.
>
>
>>>>I use Freebsd 5.1 Release.
>
>
>>>>Anyone has a clue what the problem is?
>
>
>> Yes I am logged in as root. The error message I get is that it cannot
>> find the file, so I suspect it has a problem with those brackets.
>
>
>
> What are the permissions on the file?
>
>
> I've just done:
>
> # touch "fig[1].gif"
> # ls -l
> total 0
> -rw-r--r-- 1 root wheel 0 Nov 4 14:35 fig[1].gif
> # rm fig\[1].gif
> # ls -la
> total 4
> drwxr-xr-x 2 root wheel 512 Nov 4 14:35 .
> drwxrwxr-x 12 root wheel 512 Nov 4 14:34 ..
> #
>
> This is running:
>
> FreeBSD 5.1-RELEASE-p5 #3: Thu Sep 18 19:23:23 CEST 2003
>
>
Is your kernel is more recent then mine? This is what mine says
(dmesg.boot):

FreeBSD 5.1-RELEASE #1: Thu Oct 9 13:47:02 CEST 2003

These are the attributes of the file

-rw-rw-rw- 1 root wheel 19970408 Nov 3 20:02 fig[1].gif

Weird enough I cannot even create a file with a name like that. If I try
to create a text file called: test\[1].txt "vi" says: "Shell Expansion
failed." If I create a textfile test.txt and try to copy it:

#cp test.txt test\[1].txt
#cp: No match.

Strange, don't you think?

George



Relevant Pages

  • Re: rm "fig[1].gif" fails
    ... so I suspect it has a problem with those brackets. ... > some sort of window file manager? ... That was the first thing I did, logged in as root, from Gnome Nautilus ... But the result is exactly the same strange error message. ...
    (comp.unix.bsd.freebsd.misc)
  • Re: Thank God for backups!
    ... Actually if there's nothing in there, your problem may lie elsewhere. ... As before it gives me the error message. ... prevent even root from deleting it. ... Have a look at the permissions, ...
    (Ubuntu)
  • Re: Error: 17883, Severity: 1, State: 0
    ... It could be due to various reasons. ... This is a just a health detection message. ... To find the root cause, ... 818 did fix many other bugs and gave better error message and created mini dump when 17883 was generated. ...
    (microsoft.public.sqlserver.clustering)
  • Re: pam_acct_mgmt(): user account has expired (was Re: Login
    ... I enter my normal login and then my password. ... > The last error message will repeat with the number getting ... All accounts, including root, are "expired". ... 'pam_acct_mgmt: user accound has expired' ...
    (freebsd-questions)
  • Re: IE 6 Generating Error Message and close down
    ... and same error message was generated. ... It appears that the problem lies with the web site. ... Try going to the root site http://www.esd.gov.hk first and then navigating ... my settings to verify compatibility to their program using Java. ...
    (microsoft.public.windows.inetexplorer.ie6.browser)