Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

What differs win-bash from cygwin-bash?

differs
0
10 Posted

What differs win-bash from cygwin-bash?

0
10

First of all, you should keep in mind that win-bash is based on a old version of bash (1.14.2) while cygwin-bash is more or less up to date. One important difference is the handling of drives: cygwin uses its installation directory as root dir and links all drives in the pseudo subdir /cygdrive. win-bash uses a diffent method: drives are included in paths, like on windows (e.g. c:/Winnt/System32). The root directory ‘/ is mapped to the root directory of the current drive. Examples: • ls c:/winnt – shows the content of the directory c:/winnt • cd c:/; ls /winnt – changes current drive to c: and shows the content of the directory c:/winnt • cd d:/; ls /winnt – changes current drive to d: and shows the content of the directory d:/winnt There are some other differences, most of them have been added to simplify the usage of existing un*x shell scripts: • If a shell script starts with an interpreter specification like #!/path/interpreter, the interpreter is searched in the PATH environment i

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123