bug-fileutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

rm (FU 4.0) odd bug? rm -i accepting 's' as 'y'


From: Pete Krawczyk
Subject: rm (FU 4.0) odd bug? rm -i accepting 's' as 'y'
Date: Wed, 27 Dec 2000 14:54:31 -0700 (MST)

address@hidden /tmp]# rm --version
rm (GNU fileutils) 4.0
address@hidden /tmp]# ls -al foo
ls: foo: No such file or directory
address@hidden /tmp]# touch foo
address@hidden /tmp]# ls -al foo
-rw-r--r--   1 root     root            0 Dec 27 14:44 foo
address@hidden /tmp]# rm -i foo
rm: remove `foo'? s
address@hidden /tmp]# ls -al foo
ls: foo: No such file or directory

Should this be construed as a bug, or is it a feature (perhaps 's' for
si) and forgotten in the documentation?

The best I can trace it to is that yesno() uses a regexp, which checks for
Yy or Nn.  But I can't figure out where 's' would cause it to remove the
file, whereas 'm' wouldn't.

-Pete K
-- 
Pete Krawczyk
  petek at bsod dot net or pkrawczy at uiuc dot edu
  http://www.uiuc.edu/ph/www/pkrawczy/
  Finger pkrawczy at uiuc dot edu for PGP public key




reply via email to

[Prev in Thread] Current Thread [Next in Thread]