[Mono-bugs] [Bug 60781][Wis] New - Process.Start and starting from $HOME directory problem...
bugzilla-daemon@bugzilla.ximian.com
bugzilla-daemon@bugzilla.ximian.com
Sat, 26 Jun 2004 05:17:48 -0400 (EDT)
Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.
Changed by vguzev@yandex.ru.
http://bugzilla.ximian.com/show_bug.cgi?id=60781
--- shadow/60781 2004-06-26 05:17:47.000000000 -0400
+++ shadow/60781.tmp.20274 2004-06-26 05:17:48.000000000 -0400
@@ -0,0 +1,73 @@
+Bug#: 60781
+Product: Mono: Class Libraries
+Version: unspecified
+OS: Red Hat 9.0
+OS Details: Linux skif 2.4.25 #2 SMP Fri Apr 23 14:03:00 MSD 2004 i686 athlon i386 GNU/Linux
+Status: NEW
+Resolution:
+Severity:
+Priority: Wishlist
+Component: System
+AssignedTo: mono-bugs@ximian.com
+ReportedBy: vguzev@yandex.ru
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL:
+Cc:
+Summary: Process.Start and starting from $HOME directory problem...
+
+Unzip all attached files to directory /somepath/.
+You'll need to add /somepath/ to your $PATH environment variable and
+restart shell.
+export PATH=/sompath/
+
+Files attached:
+SayHello.cs - program that prints "Hello world!"
+Starter.cs - program that starts "SayHello.exe" with Process.Start
+starter - shell script that starts "Starter.exe" (you need to change the
+path to the actual "Starter.exe" location..)
+Makefile - simple Makefile
+
+Problem description:
+When I run "starter" from my $HOME directory it says:
+
+8<------------------------------------------------------
+[vadim@skif vadim]$ which starter
+~/archive/tests/starttest/starter
+[vadim@skif vadim]$ mono --version
+Mono JIT compiler version 0.97, (C) 2002-2004 Novell, Inc and
+Contributors. www.go-mono.com
+ TLS: normal
+ GC: Included Boehm (with typed GC)
+ SIGSEGV : normal
+ Globalization: ICU
+[vadim@skif vadim]$ starter
+
+Unhandled Exception: System.ComponentModel.Win32Exception: Cannot find the
+specified file
+in <0x00657> System.Diagnostics.Process:Start_common
+(System.Diagnostics.ProcessStartInfo,System.Diagnostics.Process)
+in <0x0003d> System.Diagnostics.Process:Start
+(System.Diagnostics.ProcessStartInfo)
+in <0x00065> Starter:Main (string[])
+
+
+[vadim@skif vadim]$ set | grep HOME
+HOME=/home/vadim
+
+[vadim@skif vadim]$ set | grep PATH
+PATH=/usr/java/j2sdk1.4.2_04/bin:/home/vadim/mono/m-
+0.97/bin/:/home/vadim/archive/tests/starttest:/home/vadim/galax/Galax/bin:/
+usr/local/bin:/home/vadim/mcsharp.cluster/bin:/usr/java/j2sdk1.4.2_04/bin:/
+home/vadim/mono/m-
+0.97/bin/:/home/vadim/archive/tests/starttest:/home/vadim/galax/Galax/bin:/
+usr/local/bin:/home/vadim/mcsharp.cluster/bin:/usr/local/bin:/bin:/usr/bin:
+/usr/X11R6/bin:/opt/scali/bin:/opt/scali/sbin:/opt/scali/contrib/pbs/bin:/o
+pt/gcc/lib/:/opt/gcc/bin/:/usr/java/j2sdk1.4.1_01/bin/:/opt/intel/compiler7
+0/ia32/bin/:/home/vadim/bin:/opt/scali/bin:/opt/scali/sbin:/opt/scali/contr
+ib/pbs/bin:/opt/gcc/lib/:/opt/gcc/bin/:/usr/java/j2sdk1.4.1_01/bin/:/opt/in
+tel/compiler70/ia32/bin/:/home/vadim/bin
+8<------------------------------------------------------
+
+But when I run "starter" from any other directory - everything works
+perfectly...