* Re: bash -s from .bat file
@ 1998-07-15 9:48 Earnie Boyd
1998-07-15 20:50 ` Earl Chew
1998-07-20 14:18 ` bash -s from .bat file Michael Hirmke
0 siblings, 2 replies; 8+ messages in thread
From: Earnie Boyd @ 1998-07-15 9:48 UTC (permalink / raw)
To: Earl Chew; +Cc: gnu-win32
---Earl Chew <earl@hpautodb.aus.hp.com> wrote:
>
> : Your stated problem on the directories can be solved like this:
> :
> : bash#> cd /
> : bash#> ln -s //x/a a
> :
> : now when you do `sh -s /a/b/c/foo.sh %1' it should be able to find
it
> : because //x/a is symbolicly linked to a.
>
> This is probably true (I haven't tried it yet), but doesn't really
> answer the question why foo.bat containing
>
> sh -s %1 < \a\b\c\foo.sh
>
> run from a Win32 command shell doesn't work on b19.
>
It is most likely because sh which is a port of linuxes ash ends up
trying to open abcfoo.sh instead of \\a\\b\\c\\foo.sh.
==
- \\||//
---o0O0--Earnie--0O0o----
--earnie_boyd@yahoo.com--
------ooo0O--O0ooo-------
_________________________________________________________
DO YOU YAHOO!?
Get your free @yahoo.com address at http://mail.yahoo.com
-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request@cygnus.com" with one line of text: "help".
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: bash -s from .bat file
1998-07-15 9:48 bash -s from .bat file Earnie Boyd
@ 1998-07-15 20:50 ` Earl Chew
1998-07-16 14:33 ` Mikey
1998-07-16 17:13 ` Larry Hall
1998-07-20 14:18 ` bash -s from .bat file Michael Hirmke
1 sibling, 2 replies; 8+ messages in thread
From: Earl Chew @ 1998-07-15 20:50 UTC (permalink / raw)
To: earnie_boyd; +Cc: gnu-win32
Earnie Boyd wrote:
> > This is probably true (I haven't tried it yet), but doesn't really
> > answer the question why foo.bat containing
> >
> > sh -s %1 < \a\b\c\foo.sh
> >
> > run from a Win32 command shell doesn't work on b19.
> >
>
> It is most likely because sh which is a port of linuxes ash ends up
> trying to open abcfoo.sh instead of \\a\\b\\c\\foo.sh.
Sorry, I meant to write:
bash -s %1 < \a\b\c\foo.sh
I can understand reasons why ash doesn't work --- but I would
have thought that bash would be ok.
I've done some more experimenting. Here is a small shell script,
c:\foo.sh:
: bar=1
echo Hello
I type:
C:\>bash -s < \foo.sh
Hello
: command not found
C:\>C:\tmp>bash \foo.sh
Hello
It turns out that I get the same behaviour if I move this to e:\foo.sh
and on e: drive type:
E:\vob>bash -s < \foo.sh
Hello
: command not found
E:\vob>bash \foo.sh
\foo.sh: \foo.sh: No such file or directory
Note that bash is unable to find foo.sh using the drive relative Win32
path name.
Earl
--
>----------------------------------------------------------------------+
> Earl Chew mailto:earl_chew@hp.com |
> Hewlett-Packard Australia Tel: +61 3 9210 5528 |
> Advanced Networks Division Fax: +61 3 9210 5550 |
> 347 Burwood Highway GPS: 37 51'46"S 145 10'03"E |
> Burwood East, Victoria 3151, Australia |
>----------------------------------------------------------------------+
-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request@cygnus.com" with one line of text: "help".
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: bash -s from .bat file
1998-07-15 20:50 ` Earl Chew
@ 1998-07-16 14:33 ` Mikey
1998-07-19 17:42 ` Earl Chew
1998-07-16 17:13 ` Larry Hall
1 sibling, 1 reply; 8+ messages in thread
From: Mikey @ 1998-07-16 14:33 UTC (permalink / raw)
To: earl, gnu-win32
your CYGWIN32 env var
needs to be set to binmode
and you need to get rid of \r
from foo.sh.
or you need to set nobinmode
and make sure foo.sh has \r\n
if \a\b\c\ is ANYWHERE in your mount table,
you need to make sure the mount entry matches the mode of
foo.sh, either \n or \r\n
mixing them won't work.
On Thu, 16 Jul 1998 10:10:44 +1000, you wrote:
>Earnie Boyd wrote:
>> > This is probably true (I haven't tried it yet), but doesn't really
>> > answer the question why foo.bat containing
>> >
>> > sh -s %1 < \a\b\c\foo.sh
>> >
>> > run from a Win32 command shell doesn't work on b19.
>> >
>>
>> It is most likely because sh which is a port of linuxes ash ends up
>> trying to open abcfoo.sh instead of \\a\\b\\c\\foo.sh.
>
>Sorry, I meant to write:
>
>bash -s %1 < \a\b\c\foo.sh
>
>I can understand reasons why ash doesn't work --- but I would
>have thought that bash would be ok.
>
>I've done some more experimenting. Here is a small shell script,
>c:\foo.sh:
>
>: bar=1
>echo Hello
>
>I type:
>
>C:\>bash -s < \foo.sh
>Hello
>: command not found
>
>C:\>C:\tmp>bash \foo.sh
>Hello
>
>It turns out that I get the same behaviour if I move this to e:\foo.sh
>and on e: drive type:
>
>E:\vob>bash -s < \foo.sh
>Hello
>: command not found
>
>E:\vob>bash \foo.sh
>\foo.sh: \foo.sh: No such file or directory
>
>Note that bash is unable to find foo.sh using the drive relative Win32
>path name.
>
>Earl
-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request@cygnus.com" with one line of text: "help".
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: bash -s from .bat file
1998-07-16 14:33 ` Mikey
@ 1998-07-19 17:42 ` Earl Chew
0 siblings, 0 replies; 8+ messages in thread
From: Earl Chew @ 1998-07-19 17:42 UTC (permalink / raw)
To: jeffdbREMOVETHIS; +Cc: gnu-win32
Mikey wrote:
> your CYGWIN32 env var
> needs to be set to binmode
> and you need to get rid of \r
> from foo.sh.
I see. I can't set CYGWIN32 in 19.1 -- it causes cygwin32 to crash --
this is mentioned in the faq :-(
I'll try fiddling the file to make it binary (no \r).
> or you need to set nobinmode
> and make sure foo.sh has \r\n
Thanks.
Earl
--
>----------------------------------------------------------------------+
> Earl Chew mailto:earl_chew@hp.com |
> Hewlett-Packard Australia Tel: +61 3 9210 5528 |
> Advanced Networks Division Fax: +61 3 9210 5550 |
> 347 Burwood Highway GPS: 37 51'46"S 145 10'03"E |
> Burwood East, Victoria 3151, Australia |
>----------------------------------------------------------------------+
-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request@cygnus.com" with one line of text: "help".
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: bash -s from .bat file
1998-07-15 20:50 ` Earl Chew
1998-07-16 14:33 ` Mikey
@ 1998-07-16 17:13 ` Larry Hall
1998-07-17 18:55 ` B19.1 for Power PC Gerhard G. Thallinger
1998-07-20 18:29 ` Problem with my code Marcel R.
1 sibling, 2 replies; 8+ messages in thread
From: Larry Hall @ 1998-07-16 17:13 UTC (permalink / raw)
To: earl, earnie_boyd; +Cc: gnu-win32
At 10:10 AM 7/16/98 +1000, Earl Chew wrote:
>Earnie Boyd wrote:
>> > This is probably true (I haven't tried it yet), but doesn't really
>> > answer the question why foo.bat containing
>> >
>> > sh -s %1 < \a\b\c\foo.sh
>> >
>> > run from a Win32 command shell doesn't work on b19.
>> >
>>
>> It is most likely because sh which is a port of linuxes ash ends up
>> trying to open abcfoo.sh instead of \\a\\b\\c\\foo.sh.
>
>Sorry, I meant to write:
>
>bash -s %1 < \a\b\c\foo.sh
>
>I can understand reasons why ash doesn't work --- but I would
>have thought that bash would be ok.
>
>I've done some more experimenting. Here is a small shell script,
>c:\foo.sh:
>
>: bar=1
>echo Hello
>
>I type:
>
>C:\>bash -s < \foo.sh
>Hello
>: command not found
>
>C:\>C:\tmp>bash \foo.sh
>Hello
>
>It turns out that I get the same behaviour if I move this to e:\foo.sh
>and on e: drive type:
>
>E:\vob>bash -s < \foo.sh
>Hello
>: command not found
>
>E:\vob>bash \foo.sh
>\foo.sh: \foo.sh: No such file or directory
>
>Note that bash is unable to find foo.sh using the drive relative Win32
>path name.
>
>Earl
>--
>>----------------------------------------------------------------------+
>> Earl Chew mailto:earl_chew@hp.com |
>> Hewlett-Packard Australia Tel: +61 3 9210 5528 |
>> Advanced Networks Division Fax: +61 3 9210 5550 |
>> 347 Burwood Highway GPS: 37 51'46"S 145 10'03"E |
>> Burwood East, Victoria 3151, Australia |
>>----------------------------------------------------------------------+
You have something set improperly because all this works for me fine:
E:\>cat foo.sh
: bar=1
echo Hello
E:\>bash -s <\foo.sh
Hello
E:\>bash \foo.sh
Hello
What versions are you running for Cygwin and bash? I'm running Cygwin b19.1
with something close to Sergey's version. bash is 2.01.1. I'm also using
binary mounts on NT (4.0 + sp3).
Larry Hall lhall@rfk.com
RFK Partners, Inc. (781) 239-1053
8 Grove Street (781) 239-1655 - FAX
Wellesley, MA 02181 http://www.rfk.com
-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request@cygnus.com" with one line of text: "help".
^ permalink raw reply [flat|nested] 8+ messages in thread
* B19.1 for Power PC
1998-07-16 17:13 ` Larry Hall
@ 1998-07-17 18:55 ` Gerhard G. Thallinger
1998-07-20 18:29 ` Problem with my code Marcel R.
1 sibling, 0 replies; 8+ messages in thread
From: Gerhard G. Thallinger @ 1998-07-17 18:55 UTC (permalink / raw)
To: gnu-win32
Hello,
is anybody aware of a version of B19.1 for the
Power PC ?
Any hints are highly appreciated
Gerhard G. Thallinger gthall@icg.tu-graz.ac.at
-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request@cygnus.com" with one line of text: "help".
^ permalink raw reply [flat|nested] 8+ messages in thread
* Problem with my code...
1998-07-16 17:13 ` Larry Hall
1998-07-17 18:55 ` B19.1 for Power PC Gerhard G. Thallinger
@ 1998-07-20 18:29 ` Marcel R.
1 sibling, 0 replies; 8+ messages in thread
From: Marcel R. @ 1998-07-20 18:29 UTC (permalink / raw)
To: gnu-win32
Hi everybody..
This is the start of my code:
#include <iostream.h>
int main ()
{
int number;
char adjcoffee;
char adjdog;
char adjcat;
char adjmouse;
char adjocean;
cout << "\nChoose a number between 1 and 100:";
cin >> number;
cout << "\nGive an adjective for dog:";
cin >> adjdog;
Well, first i tried to declarate all the char, separated with "," but the
compiler warned about undeclared variables. Then, i do this way. The
problem is: When i put an adjective for dog, it jump a piece of my code.
Like this:
Choose a number between 1 and 100: 3
Give an adjective for dog: Ugly
-> this line stay empty
cat: -> dont ask for the adjective
Mouse: -> The same
Coffee: -> Hidden
Ocean: -> Ask normally
But if i put numbers, it works normally, like if i had declared a int.
What i am doing wrong???
Thanks... Oh, and one comment... Java is much easier than this...:)))
-=-=-=-==-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Home Page: http://i.am/marshall/
e-mail: marshall@cwb.matrix.com.br ou marshall@i.am
-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request@cygnus.com" with one line of text: "help".
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: bash -s from .bat file
1998-07-15 9:48 bash -s from .bat file Earnie Boyd
1998-07-15 20:50 ` Earl Chew
@ 1998-07-20 14:18 ` Michael Hirmke
1 sibling, 0 replies; 8+ messages in thread
From: Michael Hirmke @ 1998-07-20 14:18 UTC (permalink / raw)
To: gnu-win32
Earl Chew [earl_chew@hp.com] wrote:
[...]
>I see. I can't set CYGWIN32 in 19.1 -- it causes cygwin32 to crash --
>this is mentioned in the faq :-(
Get the latest coolview dll from Sergey:
http://miracle.geol.msu.ru/sos/ !
With this beast you can avoid the crashes and set CYGWIN32 env var.
[...]
>Thanks.
>
>Earl
Bye.
Michael.
--
Michael Hirmke | Telefon +49 (911) 557999
Georg-Strobel-Strasse 81 | FAX +49 (911) 557664
90489 Nuernberg | E-Mail mailto:mh@mike.franken.de
| WWW http://aquarius.franken.de/
-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request@cygnus.com" with one line of text: "help".
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~1998-07-20 18:29 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1998-07-15 9:48 bash -s from .bat file Earnie Boyd
1998-07-15 20:50 ` Earl Chew
1998-07-16 14:33 ` Mikey
1998-07-19 17:42 ` Earl Chew
1998-07-16 17:13 ` Larry Hall
1998-07-17 18:55 ` B19.1 for Power PC Gerhard G. Thallinger
1998-07-20 18:29 ` Problem with my code Marcel R.
1998-07-20 14:18 ` bash -s from .bat file Michael Hirmke
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).