I'll bet there aren't actually any .o files in that directory. In
this example, you're relying on filename generation to produce the
corresponding .o names. If no files matching "*.o" exist, the
pattern is left unchanged.
which seems strange to me,
but
x=`echo *.c` ; echo $x ; echo ${x//.c/.o}
gives
toto.c titi.c
toto.o titi.o
as expected
In this example, you're not relying on filename generation to produce
the .o names, since $x is `toto.c titi.c' instead of `*.c'.
Chet
--
``The lyf so short, the craft so long to lerne.'' - Chaucer
( ``Discere est Dolere'' -- chet )
Live...Laugh...Love
Chet Ramey, ITS, CWRU chet@case.edu http://tiswww.tis.cwru.edu/~chet/