[bug] coreutils: potentially dangerous: $(realpath //) != /
Mikhail Usenko via cygwin
cygwin@cygwin.com
Mon Mar 12 20:41:00 GMT 2018
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
More information about the Cygwin
mailing list