[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#26879: end-of-line issue with cygwin 4.4-1 sed 4.4
From: |
Dick Dunbar |
Subject: |
bug#26879: end-of-line issue with cygwin 4.4-1 sed 4.4 |
Date: |
Thu, 11 May 2017 02:23:23 -0700 |
I've tested and searched and I can't figure this one out.
It's a simple filename quoting filter to handle Windows files
that contain blanks. Easy stuff.
--- t.out ---
C:\Scan\i .2
--- sedtest.sh ---
#!/bin/bash
echo "1. simple string works"
fn="C:\Scan\i .2"
echo " $fn"
echo $fn | sed -e "s/^/'/" -e "s/\$/'/"
echo " "
echo "2. against a cat file fails"
cat t.out | sed -e "s/^/'/" -e "s/\$/'/"
echo " "
echo "3. against the file itself fails"
sed -e "s/^/'/" -e "s/\$/'/" t.out
echo " "
echo "4. Hex dump of the file shows crlf termination"
od -xc t.out
--- sedtest output ---$ sedtest.sh
1. simple string works
C:\Scan\i .2
'C:\Scan\i .2'
2. against a cat file fails
'C:\Scan\i .2
3. against the file itself fails
'C:\Scan\i .2
4. Hex dump of the file shows crlf termination
0000000 3a43 535c 6163 5c6e 2069 322e 0a0d
C : \ S c a n \ i . 2 \r \n
==== Am I doing something wrong, or is this a bug? =====
- bug#26879: end-of-line issue with cygwin 4.4-1 sed 4.4,
Dick Dunbar <=
- bug#26879: end-of-line issue with cygwin 4.4-1 sed 4.4, Eric Blake, 2017/05/11
- bug#26879: end-of-line issue with cygwin 4.4-1 sed 4.4, Dick Dunbar, 2017/05/11
- bug#26879: end-of-line issue with cygwin 4.4-1 sed 4.4, Eric Blake, 2017/05/11
- bug#26879: end-of-line issue with cygwin 4.4-1 sed 4.4, Assaf Gordon, 2017/05/11
- bug#26879: end-of-line issue with cygwin 4.4-1 sed 4.4, Eric Blake, 2017/05/11
- bug#26879: end-of-line issue with cygwin 4.4-1 sed 4.4, Assaf Gordon, 2017/05/11
- bug#26879: end-of-line issue with cygwin 4.4-1 sed 4.4, Dick Dunbar, 2017/05/11
- bug#26879: end-of-line issue with cygwin 4.4-1 sed 4.4, Dick Dunbar, 2017/05/11
- bug#26879: end-of-line issue with cygwin 4.4-1 sed 4.4, Assaf Gordon, 2017/05/11
- bug#26879: end-of-line issue with cygwin 4.4-1 sed 4.4, Dick Dunbar, 2017/05/12