This is the mail archive of the
cygwin
mailing list for the Cygwin project.
[bug] coreutils: potentially dangerous: $(realpath //) != /
- From: "Mikhail Usenko via cygwin" <cygwin at cygwin dot com>
- To: cygwin at cygwin dot com
- Date: Mon, 12 Mar 2018 23:28:15 +0300
- Subject: [bug] coreutils: potentially dangerous: $(realpath //) != /
- Authentication-results: sourceware.org; auth=none
- Authentication-results: smtp46.i.mail.ru; auth=pass smtp.auth=cygwin at inbox dot ru smtp.mailfrom=cygwin at inbox dot ru
- Reply-to: Mikhail Usenko <cygwin at inbox dot ru>
coreutils-8.26-2
cygwin-2.10.0-1
Test case 1:
-------------------
$ realpath //
//
-------------------
Expected output: /
Test case 2:
-------------------
$ MYDIR=//
$ test "$(realpath -e "$MYDIR" )" != / && echo rm -rf "$MYDIR"/*
rm -rf ///bin ///cygdrive ///Cygwin.bat ///Cygwin.ico ///Cygwin-Terminal.ico ///dev ///etc ///home ///lib ///proc ///sbin ///tmp ///usr ///var
-------------------
Expected output: no output
--
--
Problem reports: http://cygwin.com/problems.html
FAQ: http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple