public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* magic failure
@ 2013-06-19 13:23 Nellis, Kenneth
  2013-06-19 13:31 ` Matt D.
  0 siblings, 1 reply; 3+ messages in thread
From: Nellis, Kenneth @ 2013-06-19 13:23 UTC (permalink / raw)
  To: cygwin

Surprised that this didn't work:

$ ls -ld /usr/bin/gcc-?
ls: cannot access /usr/bin/gcc-?: No such file or directory
$ 

while the following did:


$ ls -ld /usr/bin/gcc-?.exe
-rwxr-xr-x 2 knellis Domain Users  94741 Feb 25  2009 /usr/bin/gcc-3.exe
-rwxr-xr-x 3 knellis Domain Users 231438 Oct 26  2011 /usr/bin/gcc-4.exe
$ 

Not a biggie. I can cope.

--Ken Nellis

--
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] 3+ messages in thread

* Re: magic failure
  2013-06-19 13:23 magic failure Nellis, Kenneth
@ 2013-06-19 13:31 ` Matt D.
  2013-06-19 16:53   ` Nellis, Kenneth
  0 siblings, 1 reply; 3+ messages in thread
From: Matt D. @ 2013-06-19 13:31 UTC (permalink / raw)
  To: cygwin

I believe the correct syntax is:

$ ls -ld /usr/bin/gcc-*


On 6/19/2013 9:01 AM, Nellis, Kenneth wrote:
 > Surprised that this didn't work:
 >
 > $ ls -ld /usr/bin/gcc-?
 > ls: cannot access /usr/bin/gcc-?: No such file or directory
 > $
 >
 > while the following did:
 >
 >
 > $ ls -ld /usr/bin/gcc-?.exe
 > -rwxr-xr-x 2 knellis Domain Users  94741 Feb 25  2009 /usr/bin/gcc-3.exe
 > -rwxr-xr-x 3 knellis Domain Users 231438 Oct 26  2011 /usr/bin/gcc-4.exe
 > $
 >
 > Not a biggie. I can cope.
 >
 > --Ken Nellis
 >
 > --
 > 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
 >
 >
 >

--
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] 3+ messages in thread

* RE: magic failure
  2013-06-19 13:31 ` Matt D.
@ 2013-06-19 16:53   ` Nellis, Kenneth
  0 siblings, 0 replies; 3+ messages in thread
From: Nellis, Kenneth @ 2013-06-19 16:53 UTC (permalink / raw)
  To: cygwin

Matt D. wrote:

> I believe the correct syntax is:
>
> $ ls -ld /usr/bin/gcc-*

There are multiple pattern matching characters.

http://www.gnu.org/software/bash/manual/bashref.html#Pattern-Matching

They have different uses. I intended to use '?' as written.

--Ken Nellis

--
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] 3+ messages in thread

end of thread, other threads:[~2013-06-19 15:56 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-06-19 13:23 magic failure Nellis, Kenneth
2013-06-19 13:31 ` Matt D.
2013-06-19 16:53   ` Nellis, Kenneth

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