delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/1999/08/24/11:09:59

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT sourceware DOT cygnus DOT com>
List-Subscribe: <mailto:cygwin-subscribe AT sourceware DOT cygnus DOT com>
List-Archive: <http://sourceware.cygnus.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sourceware DOT cygnus DOT com>
List-Help: <mailto:cygwin-help AT sourceware DOT cygnus DOT com>,
<http://sourceware.cygnus.com/ml/#faqs>
Sender: cygwin-owner AT sourceware DOT cygnus DOT com
Delivered-To: mailing list cygwin AT sourceware DOT cygnus DOT com
Message-ID: <03F4742D8225D21191EF00805FE62B990205E29B@AA-MSG-01>
From: John Wiersba <John DOT Wiersba AT medstat DOT com>
To: "' Clark Sims '" <clarksimsgnu AT my-Deja DOT com>,
"'cygwin AT sourceware DOT cygnus DOT com'" <cygwin AT sourceware DOT cygnus DOT com>
Subject: RE: Newbie questions
Date: Tue, 24 Aug 1999 11:07:09 -0400
MIME-Version: 1.0
X-Mailer: Internet Mail Service (5.5.2448.0)

> 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 AT sourceware DOT cygnus DOT com

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019