Newbie questions

John Wiersba
Tue Aug 31 23:49:00 GMT 1999

> 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

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

More information about the Cygwin mailing list