Web lists-archives.com

[bug] coreutils: potentially dangerous: $(realpath //) != /




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