WhitewaterFoundry / Fedora-Remix-for-WSL

Fedora Remix for Windows Subsystem for Linux.
Other
718 stars 51 forks source link

Redirected stderr to stdout for "which cmd.exe" #72

Closed athaks closed 4 years ago

athaks commented 4 years ago

Redirected stderr to stdout (/dev/null) when which command tries to locate cmd.exe in /etc/profile.d/00-remix.sh """su -""" produced """which: no cmd.exe in (/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin)""" every time

athaks commented 4 years ago

Eliminates below error message: username hostname ~ $ sudo su - [sudo] password for username: Last login: Fri Feb 28 10:12:55 EET 2020 on tty1 which: no cmd.exe in (/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin) root hostname ~ #

crramirez commented 4 years ago

Thank you for the contribution