bash from local mounted drive with subst command

Claude TETE
Sun Feb 20 21:38:53 GMT 2022

Hi all,

A bash in a local mounted drive, use realpath instead of mounted one
for all child processes.

Example, mount a local folder on Z: drive, go in there and run any
external command:
$ subst Z: C:\\Users
$ cd /cygdrive/z/
$ /bin/pwd


Issue since Cygwin 3.3 and also with latest snapshot (2022-02-17
11:55:32) after reading this:


Claude TETE
"Those who dream by day are cognizant of many things which escape
 those who dream only by night."
Edgar Allan Poe.

More information about the Cygwin mailing list