if you still have control over PATH then try this
make a new dir and put your uname intercept shell script there
I tested with
---
mkdir fake-out-mks
cd fake-out-mks
echo echo Windows_NT > uname
chmod +x uname
export PATH=$PWD:$PATH
cd /tmp
uname
---

On Thu, 1 Jul 2010 16:40:50 +0100 Costas wrote:
> Hello,

> I am trying to port a legacy app from using MKS on Windows to UWin. My
> biggest stumbling block (so far) is that there's hard-coded code in the app
> that looks at the output of uname and expects it to be MKS's ("Windows_NT").
>  Now, I tried switching the output of UWin's uname, but to no avail: putting
> a custom uname ahead in the PATH didn't work. Removing /usr/bin/uname didn't
> work.  Deleting the uname builtin still didn't work.  Confusingly, I am
> getting this (/usr/bin/uname is really a .bat file):
> $ whence uname
> /usr/bin/uname
> $ /usr/bin/uname
> Windows_NT
> $ uname
> UWIN-W7

> I also get the same thing if I delete the uname builtin's.  What gives?

> I am using the latest UWin release (10/6) on Win7 x64.

> Thanks in advance,

> Costas

> --00032555b94289c2e6048a554b3e
> Content-Type: text/html; charset=ISO-8859-1
> Content-Transfer-Encoding: quoted-printable

> Hello,<div><br></div><div>I am trying to port a legacy app from using MKS o=
> n Windows to UWin. My biggest stumbling block (so far) is that there&#39;s =
> hard-coded code in the app that looks at the output of uname and expects it=
>  to be MKS&#39;s (&quot;Windows_NT&quot;). =A0Now, I tried switching the ou=
> tput of UWin&#39;s uname, but to no avail: putting a custom uname ahead in =
> the PATH didn&#39;t work. Removing /usr/bin/uname didn&#39;t work. =A0Delet=
> ing the uname builtin still didn&#39;t work. =A0Confusingly, I am getting t=
> his (/usr/bin/uname is really a .bat file):</div>
> <div><div>$ whence uname</div><div>/usr/bin/uname</div><div>$ /usr/bin/unam=
> e</div><div>Windows_NT</div><div>$ uname</div><div>UWIN-W7</div><div><br></=
> div></div><div>I also get the same thing if I delete the uname builtin&#39;=
> s. =A0What gives?</div>
> <div><br></div><div>I am using the latest UWin release (10/6) on Win7 x64.<=
> /div><div><br></div><div>Thanks in advance,</div><div><br></div><div>Costas=
> </div><div><br></div><div><br></div>

> --00032555b94289c2e6048a554b3e--

> --===============0650716691==
> Content-Type: text/plain; charset="us-ascii"
> MIME-Version: 1.0
> Content-Transfer-Encoding: 7bit
> Content-Disposition: inline

> _______________________________________________
> uwin-users mailing list
> [email protected]
> https://mailman.research.att.com/mailman/listinfo/uwin-users

> --===============0650716691==--

_______________________________________________
uwin-users mailing list
[email protected]
https://mailman.research.att.com/mailman/listinfo/uwin-users

Reply via email to