This is the mail archive of the cygwin@sourceware.cygnus.com mailing list for the Cygwin project. See the Cygwin home page for more information.
Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

RE: HELP! - Please


Suhaib,

With respect to question #3 below (my original problem),
your suggestions do not appear to make a difference:

bash$ cmd.exe /c 'dir C:\D'
 Volume in drive C has no label.
 Volume Serial Number is 4036-DAAB

 Directory of C:\D

04/23/99  11:38a        <DIR>          .
04/23/99  11:38a        <DIR>          ..
               2 File(s)              0 bytes
                          1,986,461,696 bytes free
bash$ mount
Device           Directory           Type        Flags
d:               /d                  native      text!=binary
C:               /                   native      text!=binary
bash$ cat /tmp/junk
#!/bin/sh

echo "Test executing a shell script from cygtclsh80"
bash$ /tmp/junk
Test executing a shell script from cygtclsh80
bash$ cygtclsh80
% /tmp/junk
couldn't execute "\tmp\junk": no such file or directory
% exec /tmp/junk
couldn't execute "\tmp\junk": no such file or directory
% exit
bash$

> -----Original Message-----
> From: Stewart, Wayne 
> Sent: Friday, April 23, 1999 11:46 AM
> To: 'Suhaib M. Siddiqi'; Stewart, Wayne; cygwin@sourceware.cygnus.com
> Subject: RE: HELP! - Please
> 
> 
> 
> > > bash$ mount -b c: /cb
> > > Warning: /cb does not exist!
> > 
> > Are you trying to mount C: on "cb" ithout creating a cb
> > directory?  
> > 
> > If so this will fail under UNIX too.
> > 
> 
> I know it fails under UNIX, but under Cygwin it
> just gives a warning - and things appear to work
> OK afterwards, despite the warning.  If Cygwin
> requires a directory to exist prior to the mount
> in order to function properly, then this should
> be an error (as on UNIX) and not a warning.
> 
> So now we have 3 questions:
> 
> 1) Do you need a directory to exist before
>    mounting on the directory (like UNIX), if so,
>    why just a warning?
> 
> 2) If you have a drive mounted twice onto two
>    different directories (e.g. one with text=binary
>    and the other with text!=binary), how does the
>    system decide what tree you're in?  Order of
>    mount entries in registry?  Always picks the
>    binary tree?
> 
> 3) My original cygtchsh80 problem.  Can anyone
>    else reproduce it?  (It's simple to try to
>    reproduce.)  If not, what could be different
>    in my Cygwin setup?  mounts?  installing on
>    D: ?  something else?
> 
> Thanks,
>     Wayne
> 

--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com