#22 closed task (worksforme)
Incompatibility CDPATH, ash, sh, porting from *nix
Reported by: | andi.b | Owned by: | |
---|---|---|---|
Priority: | trivial | Milestone: | Version-3.10 |
Component: | Base | Version: | 3.08 |
Keywords: | CDPATH Linux Unix *nix *ix compatibility cmd.exe ash sh porting | Cc: |
Description
Hint for porting *nix software -
There is a known problem with ash or something like because DPATH will have *ix semantics, as will all the other path like environment variables.
I prefer to handle these kinds of requirement locally rather
than globally. For example, here's a bit from one of my session setup scripts which updates CDPATH for *ix semantics.
:: 2009-11-27 SHL Adjust CDPATH to have unix semantics to keep ash happy
if defined CDPATH if "%@substr[%CDPATH,0,2]" != ".;" set CDPATH=.;%CDPATH
See http://bugs.ecomstation.nl/view.php?id=3529
set CDPATH=.;..;..\..; (leading .;) works here
Change History (3)
comment:1 by , 3 years ago
Resolution: | → worksforme |
---|---|
Status: | new → closed |
Type: | defect → task |
comment:2 by , 3 years ago
There are a lot of valuable jewels in Steven posts to various mailing lists. Too bad no one can remember all of these tricks except him.
comment:3 by , 3 years ago
Milestone: | → Version-3.10 |
---|
Thanks for the suggestion