delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2007/09/14/10:58:56

X-Recipient: archive-cygwin AT delorie DOT com
X-Spam-Check-By: sourceware.org
From: "Dave Korn" <dave DOT korn AT artimi DOT com>
To: <cygwin AT cygwin DOT com>
Subject: 'rm' immune to .exe magic?
Date: Fri, 14 Sep 2007 15:58:27 +0100
Message-ID: <024f01c7f6df$b4e47740$2e08a8c0@CAM.ARTIMI.COM>
MIME-Version: 1.0
X-Mailer: Microsoft Office Outlook 11
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com


  Just checking: is rm supposed to ignore exe magic, then?


/artimi/software/firmware $ cp /bin/ls.exe /usr/local/bin/a2.exe
                          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  (Makes no difference if I use "cp /bin/ls /usr/local/bin/a2" either).

/artimi/software/firmware $ a2 --version
ls (GNU coreutils) 6.7
Copyright (C) 2006 Free Software Foundation, Inc.
This is free software.  You may redistribute copies of it under the terms of
the GNU General Public License <http://www.gnu.org/licenses/gpl.html>.
There is NO WARRANTY, to the extent permitted by law.

Written by Richard Stallman and David MacKenzie.
/artimi/software/firmware $ which a2
/usr/local/bin/a2
/artimi/software/firmware $ rm `which a2`
rm: cannot remove `/usr/local/bin/a2': No such file or directory
/artimi/software/firmware $ which a2
/usr/local/bin/a2
/artimi/software/firmware $ rm `which a2`.exe
/artimi/software/firmware $ which a2
a2: Command not found.
/artimi/software/firmware $



    cheers,
      DaveK
-- 
Can't think of a witty .sigline today....


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019