This is the mail archive of the cygwin@sourceware.cygnus.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Echo | sed behaves strangely?





The following commands seem to give the wrong output

bash$ echo x  | sed 's/[^^/]*/yz/g'
yzyz

It should just be yz? (I checked on a SunOs box)
The word count for 'echo x' is correct (I thought
it might be some kind of EOL mangling).
bash$ echo x | wc
      1       1       2

What's happening? Anyone?

many rgds,
Andy L.

mailto:Andrew_Lord@tertio.com



-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request@cygnus.com" with one line of text: "help".


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]