RE: "ls" finds file1 but "ls file1" does not

2005-05-10 Thread Gary R. Van Sickle
> -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of Ross Smith > Sent: Tuesday, May 10, 2005 4:33 PM > To: cygwin@cygwin.com > Subject: Re: "ls" finds file1 but "ls file1" does not > > Charles D. Russell w

Re: "ls" finds file1 but "ls file1" does not

2005-05-10 Thread Ross Smith
Charles D. Russell wrote: Eric Blake wrote: mv -v "$f" " ` echo $f | tr A-Z a-z ` " EVIL - you are moving "FOO" to " foo " (Windows strips trailing spaces, but not leading spaces, so it is really moving to " foo"). YOU ARE ADDING SPACES to the filename. Fix your script so that there are no sp

Re: "ls" finds file1 but "ls file1" does not

2005-05-10 Thread Charles D. Russell
Eric Blake wrote: mv -v "$f" " ` echo $f | tr A-Z a-z ` " EVIL - you are moving "FOO" to " foo " (Windows strips trailing spaces, but not leading spaces, so it is really moving to " foo"). YOU ARE ADDING SPACES to the filename. Fix your script so that there are no spaces between "` and `". __

RE: "ls" finds file1 but "ls file1" does not

2005-05-10 Thread Dave Korn
Original Message >From: Charles D. Russell >Sent: 10 May 2005 16:54 > __ > I am attaching cygcheck in case you can find something obvious. > However,I am reluctant to upgrade because the use of large static > fortran arrays with cygwin/g77 seems to be a fragile issue and my

Re: "ls" finds file1 but "ls file1" does not

2005-05-10 Thread Eric Blake
> mv -v "$f" " ` echo $f | tr A-Z a-z ` " EVIL - you are moving "FOO" to " foo " (Windows strips trailing spaces, but not leading spaces, so it is really moving to " foo"). YOU ARE ADDING SPACES to the filename. Fix your script so that there are no spaces between "` and `". Also, as mention

Re: "ls" finds file1 but "ls file1" does not

2005-05-10 Thread Charles D. Russell
Eric Blake wrote: What version of coreutils are you using? Attach the output of `cygcheck -svr' as described in cygwin.com/problems.html, then consider upgrading. __ I am attaching cygcheck in case you can find something obvious. However,I am reluctant to upgrade because the use

RE: "ls" finds file1 but "ls file1" does not

2005-05-10 Thread Dave Korn
Original Message >From: Ross b >Sent: 10 May 2005 16:17 > > I'm wondering if something else happened in the renaming > script. Is it possible there is a space (or some other > non-printable character) as the first character of the file > names? The output on a couple of messages leads m

RE: "ls" finds file1 but "ls file1" does not

2005-05-10 Thread Ross Boulet
> >> [etc] Did your ash script go wrong and rename all > those files with > actual > >> asterisks on the end ? > > > The * in the listing just indicates that the file is > executable (an ls > > option that I use by default). > > > Hey, just wondered. It happened to me once > > I'm won

RE: "ls" finds file1 but "ls file1" does not

2005-05-10 Thread Dave Korn
Original Message >From: Charles D. Russell >Sent: 10 May 2005 04:58 >> [etc] Did your ash script go wrong and rename all those files with actual >> asterisks on the end ? > The * in the listing just indicates that the file is executable (an ls > option that I use by default). Hey,

"ls" finds file1 but "ls file1" does not

2005-05-09 Thread Charles D. Russell
Eric Blake wrote: So next, check: $ type ls $ alias ls ___ $ type ls ls is aliased to `ls -aF' $ alias ls alias ls='ls -aF' __ Maybe you have an alias/function for ls that includes the --hide='*.htm' option, so that ls is doing the filtering (and not bash, like I guesse

"ls" finds file1 but "ls file1" does not

2005-05-09 Thread Charles D. Russell
Ross Boulet wrote: ls is acting like the -F option is specified which would cause the '*' to be displayed at the end of any file name which is executable (as one prior message shows these files are).? Under what shell is ls being run and is there an alias for ls that is causing this option to be in

Re: "ls" finds file1 but "ls file1" does not

2005-05-09 Thread Eric Blake
> $ echo ignoring:$GLOBIGNORE options:$- > ignoring: options:himBH > > $ shopt |grep glob > dotglob off > extglob off > nocaseglob off > nullgloboff OK, bash is not filtering the glob. But you are obviously using an alias or function for ls, since it is acting like

"ls" finds file1 but "ls file1" does not

2005-05-09 Thread Charles D. Russell
Original Message >From: Charles D. Russell > "ls" finds file1 but "ls file1" does not. How can this happen? > > The following example occurred just after I had renamed some *.htm files > to *.html using > an ash shell script. No such problem occurr

"ls" finds file1 but "ls file1" does not

2005-05-09 Thread Charles D. Russell
> Response 2 to Eric Blake: > Thanks. I forgot that unix had separate permissions for directories. > However, I have > now given myself all the permissions I know of and I still have the same > problem. > > EXAMPLE: > > $ ls ass* > ls: ass*: No such file or directory <--BUT IT IS THERE > >

RE: "ls" finds file1 but "ls file1" does not

2005-05-09 Thread Ross Boulet
> > "ls" finds file1 but "ls file1" does not.  How can this > happen? > > > > The following example occurred just after I had renamed > some *.htm files > > to *.html using > > an ash shell script.  No such problem occurred, however, &g

RE: "ls" finds file1 but "ls file1" does not

2005-05-09 Thread Dave Korn
Original Message >From: Charles D. Russell >Sent: 09 May 2005 20:07 > "ls" finds file1 but "ls file1" does not. How can this happen? > > The following example occurred just after I had renamed some *.htm files > to *.html using > an ash shell s

Re: "ls" finds file1 but "ls file1" does not

2005-05-09 Thread Eric Blake
> Response to Eric Blake: > Thanks. I forgot that unix had separate permissions for directories. > However, I have > now given myself all the permissions I know of and I still have the same > problem. > > EXAMPLE: > > $ ls ass* > ls: ass*: No such file or directory <--BUT IT IS THERE >

"ls" finds file1 but "ls file1" does not

2005-05-09 Thread Charles D. Russell
Response to Eric Blake: Thanks. I forgot that unix had separate permissions for directories. However, I have now given myself all the permissions I know of and I still have the same problem. EXAMPLE: $ ls ass* ls: ass*: No such file or directory <--BUT IT IS THERE $ ls -l total 722 -rwxr

Re: "ls" finds file1 but "ls file1" does not

2005-05-09 Thread Eric Blake
> "ls" finds file1 but "ls file1" does not. How can this happen? > [...] > > The only difference here from a correctly working directory is that the > correctly working > directory does not have execute permissions You are correct that it has something wit

"ls" finds file1 but "ls file1" does not

2005-05-09 Thread Charles D. Russell
"ls" finds file1 but "ls file1" does not. How can this happen? The following example occurred just after I had renamed some *.htm files to *.html using an ash shell script. No such problem occurred, however, when I used DOS "rename" to make the same change. (Win