public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* Newbie Questions
@ 2014-02-04 19:20 mrushton
  2014-02-04 20:52 ` Gary Johnson
  2014-02-04 20:55 ` Marco Atzeri
  0 siblings, 2 replies; 44+ messages in thread
From: mrushton @ 2014-02-04 19:20 UTC (permalink / raw)
  To: cygwin

I am loving Cygwin.  

I have been reading the manuals and documentation and have some newbie questions. 


1)  When I go to execute a script, do I just type the name of it or do i have to do a ./NameOfScript ? 

2)  I am trying to do an Alias of the Clear Command ... in my bashrc I has an alias for clear to do a printf "\033c".   Well it does not seem to work from my scripts, but works from shell prompt.
Is this a path issue ?  

3)  I am still trying to figure out how to open a termial window and have a menu script always run. 
Should I put this in my .profile or is there a better way to do this ?  

Thanks for all the work of the Cygwin team. 

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

^ permalink raw reply	[flat|nested] 44+ messages in thread
* Newbie questions
@ 2002-07-06 21:26 rick
  0 siblings, 0 replies; 44+ messages in thread
From: rick @ 2002-07-06 21:26 UTC (permalink / raw)
  To: cygwin

Hi all ,

        I was wondering If I can make a program under Linux , using gcc 
and GTK , and the same program to be ported to Windows or viceversa ?

Please guys , I'm a newbie in this matter , so I need a litle directions 
on this topic  ....

I 'm a confused , What I like to know is : What is better to work ? Gtk+ 
, QT  , Vxwindows ?

I would like to work with the most easiest cross platform library .....

Can I run an Stand alone (.exe) developed with cygwin under windows  ? 

Can I use , Dev++ for example  under windows , and gcc under linux ?

Thanks guys , sorry for my ignorance ,

Regards

Rick





--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

^ permalink raw reply	[flat|nested] 44+ messages in thread
* newbie questions
@ 2002-02-13 12:00 marcin pakula
  0 siblings, 0 replies; 44+ messages in thread
From: marcin pakula @ 2002-02-13 12:00 UTC (permalink / raw)
  To: cygwin

Hi, 
I got couple of questions and I'd appreciate your help ;o)) 
I'm new to cygwin and pretty new to linux. 
I was looking for .profile, .bashrc and .inputrc 
but i can't find them how come ???
In User manual it says that Ican set %HOME% in properties but i got 
no such 
thing....
Finally I got confused about binary and text mode :o( 
The best thing would be to get emacs I figure, but then where from ( 
what 
distro ) and how to install it ???
Where is /dev with: 
tty, ttySA0 etc.. 
CAn i just load normal linux packages such as setserial ??? if yes 
than i386 ?? 
/thanks 
/marcin 
PS I'm not in the list so I'd appreciate direct email 
PS2.. is there a IRC channel with all of you guys ??

Thanks in advance 
/marcin pakula



--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

^ permalink raw reply	[flat|nested] 44+ messages in thread
* RE: Newbie questions
@ 1999-08-25  7:53 John Wiersba
  1999-08-31 23:49 ` John Wiersba
  0 siblings, 1 reply; 44+ messages in thread
From: John Wiersba @ 1999-08-25  7:53 UTC (permalink / raw)
  To: ' Clark Sims ', 'cygwin@sourceware.cygnus.com'

> -----Original Message-----
> From: Clark Sims [ mailto:clarksimsgnu@my-Deja.com ]

<lots of SNIPs>

> How do I "see the bash man page"?

See below

> echo $PATH produces:
> 
> /cygnus/CYGWIN~1/H-I586~1/bin:/cygnus/CYGWIN~1/H-I586~1/bin:d:
> /fsf/emacs-19.34/bin:d:/fsf/bin:/WINNT/system32:/WINNT:d:/CCLI
> B/libnt:d:/WATCOM/BINNT:d:/WATCOM/BINW:d:/util:.:d:/PROGRA~1/ULTRAEDT
> 
> d:/fsf/emacs-19.34/bin contains emacs.exe
> but I can't run emacs unless I specify the full path

As another poster hinted, the colon is a path element separator, so
d:/anything won't work.  Try
mount

mkdir /d
mount d: /d

and then put /d/anything in your path.  There's more info about mount
scattered throughout the documentation/FAQ.

> d:/fsf/bin contains man.exe but I can't run man.
> Is the cygwin install supposed to contain man.exe?

I downloaded the man package from the franken ftp site, but if you already
have another man, then maybe that will work.  I believe the man pages are
included in the install, but man.exe is not, for some reason.

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

^ permalink raw reply	[flat|nested] 44+ messages in thread
* RE: Newbie questions
@ 1999-08-25  5:02  Clark Sims 
  1999-08-25  5:08 ` Kim Poulsen
                   ` (2 more replies)
  0 siblings, 3 replies; 44+ messages in thread
From:  Clark Sims  @ 1999-08-25  5:02 UTC (permalink / raw)
  To: ' Clark Sims ', 'cygwin@sourceware.cygnus.com',
	John Wiersba

 
--

On Tue, 24 Aug 1999 11:07:09   John Wiersba wrote:
>> 1) is there a way to make a case insensitive file mask?
>> For example, my c source files appear as a mixture of
>> .c and .C suffixes. ls *.c returns a different set of
>> files than ls *.C
>
>shopt -s nocaseglob or shopt -u nocaseglob depending on which setting you
>want
>

This works great!

>see bash man page and search for "insensitive"
>

man bash produces:
bash: man: command not found

How do I "see the bash man page"?

>> 2) How does bash search for commands? I am used to DOS/
>> Windozs programming, where the dos command prompt
>> searches the path. When I am running bash however,
>> I must type in the full path of any executable that
>> I want to run. Is there some way of avoiding having
>> to type in the full path?
>
>export PATH=DIR1/DIR2:DIR3:.
>
>note that . must be specified explicitly
>

echo $PATH produces:

/cygnus/CYGWIN~1/H-I586~1/bin:/cygnus/CYGWIN~1/H-I586~1/bin:d:/fsf/emacs-19.34/bin:d:/fsf/bin:/WINNT/system32:/WINNT:d:/CCLIB/libnt:d:/WATCOM/BINNT:d:/WATCOM/BINW:d:/util:.:d:/PROGRA~1/ULTRAEDT

d:/fsf/emacs-19.34/bin contains emacs.exe
but I can't run emacs unless I specify the full path

d:/fsf/bin contains man.exe but I can't run man.
Is the cygwin install supposed to contain man.exe?

>> 3) I would like to use cp to keep source files in
>> aggrement on sepparate machines. I have tried the
>> following command:
>> cp -v -u -r d:/cclib g:
>> where d: is a drive on my laptop, and g: is a drive
>> on my desktop. The problem is that the timestamps on
>> all the copied files are set to the current system 
>> files. I would like the timestamps to be the same
>> on all the copied files. This way when I copy back
>> from g:
>> cp -v -u -r g:/cclib d:
>> I get only the files that I have worked on during
>> the day. They way things stand, all of the files
>> I copied in the morning are copied back a second 
>> time. Is there a way to make the timestamps match?
>
>you almost had it (just read a little more in the cp man page): use -p
>

cp -v -u -r -p g:/cclib d:

This works great. Thanks



--== Sent via Deja.com http://www.deja.com/ ==--
Share what you know. Learn what you don't.

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

^ permalink raw reply	[flat|nested] 44+ messages in thread
* RE: Newbie questions
@ 1999-08-24  8:08 John Wiersba
  1999-08-31 23:49 ` John Wiersba
  0 siblings, 1 reply; 44+ messages in thread
From: John Wiersba @ 1999-08-24  8:08 UTC (permalink / raw)
  To: ' Clark Sims ', 'cygwin@sourceware.cygnus.com'

> 1) is there a way to make a case insensitive file mask?
> For example, my c source files appear as a mixture of
> .c and .C suffixes. ls *.c returns a different set of
> files than ls *.C

shopt -s nocaseglob or shopt -u nocaseglob depending on which setting you
want

see bash man page and search for "insensitive"

> 2) How does bash search for commands? I am used to DOS/
> Windozs programming, where the dos command prompt
> searches the path. When I am running bash however,
> I must type in the full path of any executable that
> I want to run. Is there some way of avoiding having
> to type in the full path?

export PATH=DIR1/DIR2:DIR3:.

note that . must be specified explicitly

> 3) I would like to use cp to keep source files in
> aggrement on sepparate machines. I have tried the
> following command:
> cp -v -u -r d:/cclib g:
> where d: is a drive on my laptop, and g: is a drive
> on my desktop. The problem is that the timestamps on
> all the copied files are set to the current system 
> files. I would like the timestamps to be the same
> on all the copied files. This way when I copy back
> from g:
> cp -v -u -r g:/cclib d:
> I get only the files that I have worked on during
> the day. They way things stand, all of the files
> I copied in the morning are copied back a second 
> time. Is there a way to make the timestamps match?

you almost had it (just read a little more in the cp man page): use -p

> Thanks in Advance,

You're welcome :-)

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

^ permalink raw reply	[flat|nested] 44+ messages in thread
* Newbie questions
@ 1999-08-24  6:26  Clark Sims 
  1999-08-24  6:35 ` Larry Hall (RFK Partners, Inc)
                   ` (2 more replies)
  0 siblings, 3 replies; 44+ messages in thread
From:  Clark Sims  @ 1999-08-24  6:26 UTC (permalink / raw)
  To: cygwin

 I just loaded cygwin onto my computer and I have
several questions.

1) is there a way to make a case insensitive file mask?
For example, my c source files appear as a mixture of
.c and .C suffixes. ls *.c returns a different set of
files than ls *.C

2) How does bash search for commands? I am used to DOS/
Windozs programming, where the dos command prompt
searches the path. When I am running bash however,
I must type in the full path of any executable that
I want to run. Is there some way of avoiding having
to type in the full path?

3) I would like to use cp to keep source files in
aggrement on sepparate machines. I have tried the
following command:
cp -v -u -r d:/cclib g:
where d: is a drive on my laptop, and g: is a drive
on my desktop. The problem is that the timestamps on
all the copied files are set to the current system 
files. I would like the timestamps to be the same
on all the copied files. This way when I copy back
from g:
cp -v -u -r g:/cclib d:
I get only the files that I have worked on during
the day. They way things stand, all of the files
I copied in the morning are copied back a second 
time. Is there a way to make the timestamps match?

Thanks in Advance,

Clark Sims


--== Sent via Deja.com http://www.deja.com/ ==--
Share what you know. Learn what you don't.
#include <stdio.h>
#include <string.h>
#include <conio.h>

void append_input( const char *npt, char *pg, int ln, int mxln, int mxwdth);
/*
assumes: 
   ln > 0
   mxwdth > 0
   strlen( npt) < mxwdth
   ln < mxln
   npt can't contain a newline character
changes:
   characters between pg[ln*mxwdth] and pg[ln*mxwdth+strlen(npt)]
description:
   appends npt to pg, at line ln
*/

void dump_input( const char *pg, int nmln, int mxln, int mxwdth, int wait);
/*
assumes:
   mxln >= nmln  > 0
   pg contains vallid null terminated strings, with a stride of mxwdth
changes:
   stdout
description:
   this dumps pg to stdout
   if wait is true, than getch is called, which causes
   the program to pause untill a key is hit from the keyboard
*/
 
#define MAXWIDTH 258

char input[MAXWIDTH+1];

const char *_usage = "usage: mypg [-p=25]\n";
int main( int argc, const char* argv[])
{
int p=25, i;
char *pg, *pinput;

if (argc > 1)
{
  if (argc!=2)
    {
      goto usage;
    }
  if (memcmp( argv[1], "-p=", 3) != 0)
    {
      goto usage;
    }
  p = atol( argv[1]+3);
  if (p<=0)
    {
      printf( "p must be > 0\n");
      goto usage;
    }
}
  
pg = (char *)malloc( p*MAXWIDTH);
if (pg==NULL){
  printf( "out of memory\n");
  return 2;
}

i = 0;
do {
  input[0] = 0;
  pinput = gets( input);
  
  if (pinput != NULL || input[0]!=0)
    {
      append_input( input, pg, i, p, MAXWIDTH);
      i++;
    }
    
  if (i%p == 0 || pinput==NULL)
    {
      dump_input( pg, i, p, MAXWIDTH, pinput!=NULL);
      i = 0;
    }
} while (pinput != NULL);
      
return 0;

usage:

printf( _usage);

return 1;
}

void append_input( 
   const char *npt, 
   char *pg, 
   int ln, 
   int mxln, 
   int mxwdth)
{
char *funcname = "append_input";	
long nptlen;

if (npt==NULL)
   {
      printf( "npt==NULL in %s\n", funcname);
      exit( 1);
   }

if (pg==NULL)
   {
      printf( "pg==NULL in %s\n", funcname);
      exit( 1);
   }

if (ln < 0)
   {
	   printf( "ln<= in %s\n", funcname);
	   exit( 1);
   }

if (mxln < 0)
   {
	   printf( "mxln<= in %s\n", funcname);
	   exit( 1);
   }

if (mxwdth < 0)
   {
	   printf( "mxwdth<= in %s\n", funcname);
	   exit( 1);
   }

nptlen = strlen( npt);

if (nptlen >= mxwdth)
   {
      printf( "strlen(input) > maxwidth in %s\n", funcname);
      exit( 1);
   }
   
strcpy( pg+ln*mxwdth, npt);

}    

void dump_input( 
   const char *pg, 
   int nmln, 
   int mxln, 
   int mxwdth, 
   int wait)
{
int i;

if (nmln > mxln)
  {
    printf( "error, nmln > mxln in dump_input\n");
    exit( 1);
  }

for (i=0;i<nmln;i++)
  {
    puts( pg+i*mxwdth);
  }
  
fflush( NULL);

if (wait)
   {
      getch();
   }
}






^ permalink raw reply	[flat|nested] 44+ messages in thread
* Newbie questions..
@ 1999-01-31 23:52 Jan Hubicka
  0 siblings, 0 replies; 44+ messages in thread
From: Jan Hubicka @ 1999-01-31 23:52 UTC (permalink / raw)
  To: gnu-win32

Hi
Those are probably common questions, but I can't find the answer in
the FAQ.

I am working on XaoS port for Windows (thanks to Jan Olderdissen it mostly
works now). It have also DirectX support. Jan did it using dll library from
MSVC, that contains necesary functions and is used by XaoS. I want to merge
those two parts and compile DirectX calls directly in CygWin (MingWin).
Is this possible? Can I find DirectX headers somewhere?

Other stupid quiestion is about keyboards. WHen cygwin program is started,
keyboard switching don't work (I have installed czech keyboard as primary
and English as secondary) and programming in Czech keyboard is quite anoying
Is there any way to switch the keyboards? (I am using W95 here in school)

Thanks
Please reply directly to my, because I am not subscribed.

Honza
-- 
                       OK. Lets make a signature file.
+-------------------------------------------------------------------------+
|        Jan Hubicka (Jan Hubi\v{c}ka in TeX) hubicka@freesoft.cz         |
|         Czech free software foundation: http://www.freesoft.cz          |
|AA project - the new way for computer graphics - http://www.ta.jcu.cz/aa |
|  homepage: http://www.paru.cas.cz/~hubicka/ , games koules, Xonix, fast  |
|  fractal zoomer XaoS, index of Czech GNU/Linux/UN*X documentation etc.  | 
+-------------------------------------------------------------------------+
-
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] 44+ messages in thread
* RE: Newbie questions....
@ 1998-04-02  9:35 Earnie Boyd
  0 siblings, 0 replies; 44+ messages in thread
From: Earnie Boyd @ 1998-04-02  9:35 UTC (permalink / raw)
  To: anagle, gnu-win32, martin

If you issue bash with the --login script then it will execute a 
/etc/profile file.  If you "export HOME=/home/martin" from within 
/etc/profile and "source ~/.bashrc" it will do what you want.

EXAMPLE:

#file: /etc/profile
#This file will be used by "bash --login"
#
export HOME=/home/martin
export PATH=.:/usr/bin:/usr/local/bin:$PATH
source ~/.bashrc

-        \\||//
---o0O0--Earnie--0O0o----
-earnie_boyd@hotmail.com-
------ooo0O--O0ooo-------

Check out these great gnu-win32 related sites:
ftp://ftp.cygnus.com/pub/gnu-win32/latest/                  (ftp site)
http://www.cygnus.com/pubs/gnupro/                    (Comercial Page)
http://www.cygnus.com/misc/gnu-win32/                   (Project Page)
http://www.cygnus.com/ml/gnu-win32                     (Mail Archives)
http://www.itribe.net/virtunix/winhelp-man-pages/     (HTML Man Pages)
http://www.lexa.ru/sos                               (Sergey Okhapkin)
ftp://www.lexa.ru/pub/domestic/sos/                (Sergey's ftp site)
http://www.fu.is.saga-u.ac.jp/~colin/gcc.html           (Colin Peters)
http://www.xraylith.wisc.edu/~khan/software/gnu-win32/    (Mumit Khan)
http://gnu-win32.paranoia.ru                   (Chuck Bogorad's ports)
http://www.bestweb.net/~aka/gnu-win32/  (GNU-Win32 Bash Configuration)
http://rcw.home.ml.org/                  (Rob Warner - software ports)
http://www.wenet.net/~garbanzo/gnuwin32/     (more - software portals)
http://www.wenet.net/~garbanzo/gnuwin32/rpm   (Redhat Package Manager)
http://www.parallax.co.uk/~andyp/index_text.html  (Andy Piper - ports)
http://www.tiac.net/users/cgf     (Christopher Faylor - package ports)
ftp://ftp.franken.de/pub/win32/develop/gnuwin32/       (German mirror)

SEARCH ENGINES WITH gnu-win32 mail archive RELATED INDICIES:
http://www.progressive-comp.com/Lists/?l=gnu-win32&r=1&w=2#gnu-win32
http://www.findmail.com
http://www.search.com
add gnu-win32 or gnuwin32 to the search criteria.

Help for Win32 Beginners: http://www.relisoft.com

>From: "Smith, Martin" <martin@buntypost.dundee.ncr.com>
>To: "Nagle, Adrian" <anagle@ball.com>,
>        GNU-WIN32 Project
>	 <gnu-win32@cygnus.com>
>Subject: RE: Newbie questions....
>Date: Sun, 22 Mar 1998 14:41:12 -0000
>
>I had to set HOME=/home/martin via the System icon in the NT Control 
Panel
>(under the Environment tab). This works fine but I'd be interested in
>knowing if anyone has been able to do it from .bashrc or equivalent.
>
>Regards,
>	Martin
>
>> -----Original Message-----
>> From:	Nagle, Adrian [SMTP:anagle@ball.com]
>> Sent:	Thursday, March 19, 1998 6:18 PM
>> To:	GNU-WIN32 Project
>> Subject:	Newbie questions....
>> 
>> I am interested in the CYGWIN-32 project.  Since at work, I must use 
NT,
>> I keep pulling hairs out when the ls command doesn't work.  
Fortunately
>> I found CYGWIN-32 and the bash shell.  That seems to solve my 
problem.
>> 
>> However, some questions.  I've tried to find the information on the 
web,
>> but haven't been successful.  How does bash work in CYGWIN-32?  I 
can't
>> figure out how to set the $HOME variable.  I have my .bash_profile 
and
>> .bashrc in my home directory to configure my environment, but 
executing
>> the cygnus.bat file (to start bash) will not source those files and 
it
>> puts me in the desktop directory.  How do I configure bash so that it
>> sources my config files?
>> 
>> Or, better yet, what is the best link for the documentation?  That 
could
>> answer more of my questions (i.e. getting g77 to work).
>> 
>> Thanks for the help.
>> 
>> Adrian
>> 
>> 
-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-
>> Adrian Nagle                                      Tele: 303-939-6518
>> Thermal Engineer                                   FAX: 303-939-5166
>> Ball Aerospace & Technologies Corp.
>> Boulder, Colorado
>> http://www.ball.com/aerospace/batchp.html
>> 
>> 
>> -
>> For help on using this list (especially unsubscribing), send a 
message to
>> "gnu-win32-request@cygnus.com" with one line of text: "help".
>-
>For help on using this list (especially unsubscribing), send a message 
to
>"gnu-win32-request@cygnus.com" with one line of text: "help".
>



______________________________________________________
Get Your Private, Free Email at http://www.hotmail.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] 44+ messages in thread
[parent not found: <199803221444.GAA20073@cygnus.com>]
* Newbie questions....
@ 1998-02-28 23:38 Nagle, Adrian
  0 siblings, 0 replies; 44+ messages in thread
From: Nagle, Adrian @ 1998-02-28 23:38 UTC (permalink / raw)
  To: GNU-WIN32 Project

I am interested in the CYGWIN-32 project.  Since at work, I must use NT,
I keep pulling hairs out when the ls command doesn't work.  Fortunately
I found CYGWIN-32 and the bash shell.  That seems to solve my problem.

However, some questions.  I've tried to find the information on the web,
but haven't been successful.  How does bash work in CYGWIN-32?  I can't
figure out how to set the $HOME variable.  I have my .bash_profile and
.bashrc in my home directory to configure my environment, but executing
the cygnus.bat file (to start bash) will not source those files and it
puts me in the desktop directory.  How do I configure bash so that it
sources my config files?

Or, better yet, what is the best link for the documentation?  That could
answer more of my questions (i.e. getting g77 to work).

Thanks for the help.

Adrian

-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-
Adrian Nagle                                      Tele: 303-939-6518
Thermal Engineer                                   FAX: 303-939-5166
Ball Aerospace & Technologies Corp.
Boulder, Colorado
http://www.ball.com/aerospace/batchp.html


-
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] 44+ messages in thread
* Re: Newbie questions
@ 1998-02-09  5:30 Earnie Boyd
  0 siblings, 0 replies; 44+ messages in thread
From: Earnie Boyd @ 1998-02-09  5:30 UTC (permalink / raw)
  To: silasbrown; +Cc: gnu-win32

Hi Silas,

Since it appears that you are more interested in a true Win32 
environment you might take a look at the Mingw32 ports available via 
Colin Peters' page whose URL is listed below.

The Cygnus project adds a UNIX layer between tools and executables.  
This adds overhead that you may not be interested in.  The Mingw32 
project removed the dependency on the cygwin.dll.  When files are read 
by programs built with Mingw32 and the default modes are used on the 
open function, the programs will read \n or \r\n and write \r\n.

You will also find your one parameter mkdir function and your strlwr 
function.

-        \\||//
---o0O0--Earnie--0O0o----
-earnie_boyd@hotmail.com-
------ooo0O--O0ooo-------

Check out these great gnu-win32 related sites:
ftp://ftp.cygnus.com/pub/gnu-win32/latest/                  (ftp site)
http://www.cygnus.com/pubs/gnupro/                    (Comercial Page)
http://www.cygnus.com/misc/gnu-win32/                   (Project Page)
http://www.cygnus.com/ml/gnu-win32                     (Mail Archives)
http://www.itribe.net/virtunix/winhelp-man-pages/     (HTML Man Pages)
http://www.lexa.ru/sos                               (Sergey Okhapkin)
ftp://www.lexa.ru/pub/domestic/sos/                (Sergey's ftp site)
http://www.fu.is.saga-u.ac.jp/~colin/gcc.html           (Colin Peters)
http://www.xraylith.wisc.edu/~khan/software/gnu-win32/    (Mumit Khan)
http://gnu-win32.paranoia.ru                   (Chuck Bogorad's ports)
ftp://ftp.deninc.com/pub (Den Internet Services - US mirror and ports)
http://www.bestweb.net/~aka/gnu-win32/  (GNU-Win32 Bash Configuration)
http://rcw.home.ml.org/                  (Rob Warner - software ports)
http://www.wenet.net/~garbanzo/gnuwin32/     (more - software portals)
http://www.wenet.net/~garbanzo/gnuwin32/rpm   (Redhat Package Manager)

>From: "Silas S. Brown" <silasbrown@bigfoot.com>
>To: gnu-win32@cygnus.com
>Date: Fri, 6 Feb 1998 22:55:36 +0000
>Subject: Newbie questions
>
>I guess that these are really silly questions for the list, but I 
>can't find the answers in the FAQ or the archives - maybe somebody 
>could put them in the FAQ?
>
>1.  Why don't functions like strlwr() seem to be included?  They're 
>in the standard (I think).
>
>2.  Why does mkdir() have a second integer parameter? - I've never 
>seen this on any other compiler.
>
>3.  The FAQ says that Cygnus can't re-distribute the Microsoft API 
>header files, but that it is building up a set of its own.  I tried 
>searching all of the include files for a few functions (like 
>midiOutOpen) but couldn't find them.  Is this because the set is 
>incomplete?  Is there anywhere where one can download the Microsoft 
>header files, and can these then be used?
>
>4.  When I try using Cygnus to write a CGI "script", MS Internet 
>Services complains that "The script misbehaved by returning an 
>incomplete set of headers".  It seems that it isn't even executing at 
>all.  However, when I run it from Command Prompt (with an artificial 
>QUERY_STRING), everything is fine.  It also works on other systems.  
>Is there any reason why this is happening?
>
>Many thanks
>
>Regards
>
>-- Silas S. Brown, http://www.bigfoot.com/~silasbrown/ (free music 
program etc)
>
>"Time and unforseen occurance befall them all" - Ecclesiastes 9:11
>
>-
>For help on using this list (especially unsubscribing), send a message 
to
>"gnu-win32-request@cygnus.com" with one line of text: "help".
>




______________________________________________________
Get Your Private, Free Email at http://www.hotmail.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] 44+ messages in thread
* bash questions
@ 1998-02-06  8:16 Eric Horowitz
  1998-02-06 16:53 ` Newbie questions Silas S. Brown
  0 siblings, 1 reply; 44+ messages in thread
From: Eric Horowitz @ 1998-02-06  8:16 UTC (permalink / raw)
  To: gnu-win32

I installed gnu-win32 simply to run some csh scripts that I had on a
Solaris box. In the process of converting this script to bash I have
encountered the following problems...

1) set 

   It does not seem to do anything. I have been using declare instead. Is set
   supposed to set variables?

2) let

      let THREE=1+2

   works fine in that 

      echo $THREE

   responds with 3, but...

      let OLTT=1<2

   responds with...

      2: no such file or directory

3) If I have a string of items such as...

      declare ALIST="abc def ghi jkl mno pqr"

   I can access items individually in a for command such as...

      for ITEM in $ALIST; do

  but is there a command or syntax that will let me access any one specific
member? I would
  like to do something like...

      declare THIS_ITEM=$ALIST[$INDEX]

4) test

   I would like to make complicated arithmetic relational operations such
as...

   test ($V1 -lt $V2) -a ($V3 -lt $V4)

   but I am not getting the syntax quite right. Is there a way to do this?

Thanks... Eric Horowitz
-
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] 44+ messages in thread
* Re: tar (four questions) (NBY)
@ 1998-02-05  9:14 Earnie Boyd
  1998-02-06  1:27 ` Newbie questions Francois Felix Ingrand
  0 siblings, 1 reply; 44+ messages in thread
From: Earnie Boyd @ 1998-02-05  9:14 UTC (permalink / raw)
  To: fiat_owner; +Cc: gnu-win32

>Date: Wed, 04 Feb 1998 13:18:33 -0500
>From: Jon Byron Davis <fiat_owner@yahoo.com>
>To: gnuwin32 <gnu-win32@cygnus.com>
>Subject: tar (four questions)
>
>A few questions about tar:
>
>a) I get the following error/warning when I create an archive:
>   (someone asked about this before, but I never saw an answer)
>
>   root@DOLORES bash-2.01$tar cvf tmp.tar tmp/
>   setgrent called, and it's not done yet.
>
>   Is this a problem?  I haven't seen any negative effects, but...


"(module) called, and it's not done yet" indicates a call to a routine 
that has been stubbed.  There shouldn't be any negative effects as long 
as the routine is UNIX specific.


>
>b) Has anyone had problems with tar screwing up archives?  I 
>   don't know if it was tar or gzip (or gunzip for that matter)
>   but every now and then tar xvf fails, complaining that something
>   is wrong with the archive. This has only happened to archives 
>   that I have created, not on any that I have downloaded.  Is 
>   there any chance that running several instances of tar (or gzip)
>   in the background simultaneously could be confusing things?
>   

I haven't used tar that much.  I haven't had any problems.  I think 
though I remember reading something someone else had sent, though.  
Check the mail archives (URL listed below signature).

>c) I can't seem to get some of the switches for tar to work.  For
>   example, -r (--append) and -u (--update) don't seem to work.
>   Am I using them incorrectly, or are some of the switches not yet
>   implemented?
>

don't know. Haven't tried it.

>d) How is the CR/LF thing handled with tar?  I have / mounted as
>   text=binary, but I'd like to be able to use tar to archive some
>   of my Win32 stuff (Excel spreadsheets, mostly).  I haven't run
>   into any problems yet, but I'd like to be aware of any potential
>   pitfalls.
>


As long as you execute tar within the text=binary directories then the 
\r should not be a problem.  Tar will then not add or subtract anything 
from the file.  If you execute tar from text!=binary directories, \r 
will be removed and control z ends the file.

>Thanks for any help/advice you can offer!
>
>Byron
>fiat_owner@yahoo.com
>-- 
>Jon Byron Davis                                        617.629.4194
>88 Concord Ave. #2                                  jbdavis@mit.edu
>Somerville, MA 02143                           fiat_owner@yahoo.com
>
>"We saw shadows of the morning light -- shadows of the evening sun"
>-


-        \\||//
---o0O0--Earnie--0O0o----
-earnie_boyd@hotmail.com-
------ooo0O--O0ooo-------

Check out these great gnu-win32 related sites:
ftp://ftp.cygnus.com/pub/gnu-win32/latest/           (ftp site)
http://www.cygnus.com/pubs/gnupro/                   (Comercial Page)
http://www.cygnus.com/misc/gnu-win32/                (Project Page)
http://www.cygnus.com/ml/gnu-win32                   (Mail Archives)
http://www.itribe.net/virtunix/winhelp-man-pages/    (HTML Man Pages)
http://www.lexa.ru/sos                               (Sergey Okhapkin)
ftp://www.lexa.ru/pub/domestic/sos/                (Sergey's ftp site)
http://www.fu.is.saga-u.ac.jp/~colin/gcc.html        (Colin Peters)
http://www.xraylith.wisc.edu/~khan/software/gnu-win32/ (Mumit Khan)
http://gnu-win32.paranoia.ru                   (Chuck Bogorad's ports)
ftp://ftp.deninc.com/pub (Den Internet Services - US mirror and ports)
http://www.bestweb.net/~aka/gnu-win32/  (GNU-Win32 Bash Configuration)
http://rcw.home.ml.org/                  (Rob Warner - software ports)


______________________________________________________
Get Your Private, Free Email at http://www.hotmail.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] 44+ messages in thread

end of thread, other threads:[~2014-02-06 20:34 UTC | newest]

Thread overview: 44+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-02-04 19:20 Newbie Questions mrushton
2014-02-04 20:52 ` Gary Johnson
2014-02-04 20:55 ` Marco Atzeri
2014-02-05 18:25   ` Mike Rushton
2014-02-05 18:30     ` Larry Hall (Cygwin)
2014-02-05 21:17       ` Warren Young
2014-02-05 21:30         ` Warren Young
2014-02-05 22:20           ` Andrey Repin
2014-02-05 22:35             ` Andrey Repin
2014-02-06  0:39             ` Warren Young
2014-02-06  1:05               ` Andrey Repin
2014-02-06  1:15                 ` Warren Young
2014-02-06  8:20                   ` Andrey Repin
2014-02-06 20:34                     ` Warren Young
2014-02-05 21:44         ` Mike Rushton
2014-02-05 22:20           ` Andrey Repin
2014-02-05 22:05         ` Andrey Repin
  -- strict thread matches above, loose matches on Subject: below --
2002-07-06 21:26 Newbie questions rick
2002-02-13 12:00 newbie questions marcin pakula
1999-08-25  7:53 Newbie questions John Wiersba
1999-08-31 23:49 ` John Wiersba
1999-08-25  5:02  Clark Sims 
1999-08-25  5:08 ` Kim Poulsen
1999-08-31 23:49   ` Kim Poulsen
1999-08-25  8:06 ` Keith Starsmeare
1999-08-31 23:49   ` Keith Starsmeare
1999-08-31 23:49 `  Clark Sims 
1999-08-24  8:08 John Wiersba
1999-08-31 23:49 ` John Wiersba
1999-08-24  6:26  Clark Sims 
1999-08-24  6:35 ` Larry Hall (RFK Partners, Inc)
1999-08-31 23:49   ` Larry Hall (RFK Partners, Inc)
1999-08-24 13:06 ` Michael Hirmke
1999-08-31 23:49   ` Michael Hirmke
1999-08-31 23:49 `  Clark Sims 
1999-01-31 23:52 Jan Hubicka
1998-04-02  9:35 Earnie Boyd
     [not found] <199803221444.GAA20073@cygnus.com>
1998-04-02  9:35 ` Michael Hirmke
1998-02-28 23:38 Nagle, Adrian
1998-02-09  5:30 Earnie Boyd
1998-02-06  8:16 bash questions Eric Horowitz
1998-02-06 16:53 ` Newbie questions Silas S. Brown
1998-02-07  6:45   ` Benjamin Riefenstahl
1998-02-05  9:14 tar (four questions) (NBY) Earnie Boyd
1998-02-06  1:27 ` Newbie questions Francois Felix Ingrand
1998-02-06 11:19   ` Fergus Henderson

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).