unix windows shells pain

> > (when (string-equal system-type "windows-nt")
> > (progn
> > (setenv "PATH" "/usr/local/bin:/usr/bin:/bin:/usr/X11R6/bin")

i set my PATH in my Windows emacs to unix paths because i'm mostly using cygwin shell inside emacs...

i still need to do some study on the various paths to have a some sort of more universal setup, so that i should be able to invoke cygwin or Windows commands in all of emacs interactive shells: shell, cmd-shell, powershell... as of now, am not sure that's even desirable... i guess i needs to understand more about how these shells relates to each other technically outside of emacs first... the path separator issue of / vs \ and their automatic conversion in different shells has also been a pain... in all shells (cygwin bash, cmd.exe, PowerShell) they all have automatic conversion as you use the shell, but when you write scripts or set paths, you can't arbitrarily use / or \ (even if properly quoted in string), the rule for the omission of drive letter is also a complex issue, and cygwin has some rather esoteric mechanisms to map drives (e.g. in cygwin bash, “/cygdrive/c” maps to “C:\”) ...


No comments:

Post a Comment