Jim Meyering wrote: > Benno Schulenberg <[EMAIL PROTECTED]> wrote: > > * expecting success: $compare out /dev/null > > --- out 2007-05-16 14:47:00.000000000 +0000 > > +++ /dev/null 2005-05-14 16:37:31.000000000 +0000 > > @@ -1 +0,0 @@ > > - > > \ No newline at end of file > > * FAIL 3: expect no output > > $compare out /dev/null > > Can you see why that's failing?
# dd if=/dev/zero of=FILE bs=1M count=1 2>/dev/null # parted -s FILE mklabel msdos >out 2>&1 # xxd out 0000000: 1b5b 3f31 3033 3468 .[?1034h # echo $LC_ALL C # echo $PROMPT_COMMAND | xxd 0000000: 0a . > > -Warning: The existing disk label on DEVICE will be destroyed > > and all data on this disk will be lost. Do you want to continue? > > +Warning: The existing disk label on DEVICE will be destroyed > > and all data on this disk will be lost. Do you want to continue? > > The two preceding lines look identical to me, but diff found a > difference. Is there a difference in the line-ending byte? No, but the out line is preceded by that same "1b5b 3f31 3033 3468" sequence of bytes. I have no idea where it's coming from. # bash --version | head -1 GNU bash, version 3.2.17(1)-release (i686-pc-linux-gnu) # parted --version | head -1 parted (GNU parted) 1.8.7 # grep Yes t0000-basic.sh | xxd 0000000: 5965 732f 4e6f 3f20 790a Yes/No? y. Benno _______________________________________________ bug-parted mailing list bug-parted@gnu.org http://lists.gnu.org/mailman/listinfo/bug-parted