From mboxrd@z Thu Jan 1 00:00:00 1970 From: John Wiersba To: "' Clark Sims '" , "'cygwin@sourceware.cygnus.com'" Subject: RE: Newbie questions Date: Tue, 24 Aug 1999 08:08:00 -0000 Message-id: <03F4742D8225D21191EF00805FE62B990205E29B@AA-MSG-01> X-SW-Source: 1999-08/msg00606.html > 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 From mboxrd@z Thu Jan 1 00:00:00 1970 From: John Wiersba To: "' Clark Sims '" , "'cygwin@sourceware.cygnus.com'" Subject: RE: Newbie questions Date: Tue, 31 Aug 1999 23:49:00 -0000 Message-ID: <03F4742D8225D21191EF00805FE62B990205E29B@AA-MSG-01> X-SW-Source: 1999-08n/msg00606.html Message-ID: <19990831234900.z55B1yPFBPOdQzWT6WahKn2F79qtGHm5zL5Gp4v1Syo@z> > 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