Web lists-archives.com

Anomaly with ruby gem env under Cygwin




I use Ruby both under Cygwin and MSYS, and have noticed an anomaly under
Cygwin:

Under Cygwin, the "gem env" command gives a somewhat broken report:

% gem env
...
  - SHELL PATH:
     - /usr/local/bin
     - /usr/bin
     - /bin
     - /usr/sbin
     - /c/Windows/system32
     - /c/Windows
     - /c/Windows/system32/wbem
     - /c/ProgramData/Oracle/Java/javapath
     - /c/Program
     - Files/Common
     - Files/Microsoft
     - Shared/Windows
     - Live
     - /c/Program
     - Files
     - (x86)/Common
     - Files/Microsoft
     - Shared/Windows
     - Live
     - /c/Program
     - Files/Dell/DW
     - WLAN
     - Card
...

Notice that paths with spaces get broken at the spaces.

Under MSYS, the problem does not happen - cf.:

$ gem env
...
  - SHELL PATH:
     - c:\Ruby23\bin\
     - .
     - C:\MinGW\msys\1.0\local\bin
     - C:\MinGW\bin
     - C:\MinGW\msys\1.0\bin
     - c:\Windows\system32
     - c:\Windows
     - c:\Windows\system32\wbem
     - c:\ProgramData\Oracle\Java\javapath
     - c:\Program Files\Common Files\Microsoft Shared\Windows Live
     - c:\Program Files (x86)\Common Files\Microsoft Shared\Windows Live
     - c:\Program Files\Dell\DW WLAN Card
     - c:\Program Files (x86)\Intel\iCLS Client
     - c:\Program Files\Intel\iCLS Client
     - c:\Windows\System32\WindowsPowerShell\v1.0
     - c:\Program Files\WIDCOMM\Bluetooth Software
     - c:\Program Files\WIDCOMM\Bluetooth Software\syswow64
     - c:\Program Files (x86)\Windows Live\Shared
     - c:\Program Files (x86)\Bazaar
     - c:\Program Files (x86)\QuickTime\QTSystem
...

-- 
Will


--
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