i've been trying to extract the archives for the Xorg Libraries section of the systemd edition BLFS 11.2 book and for some reason when i type:
Code:
for package in $(grep -v '^#' ../lib-7.md5 | awk '{print $2}'); do packagedir=${package%.tar.?z*}; tar -xf $package; done
(i shortened it during troubleshooting to try and nail down the problem)
the command returns the archives but with \r appended to the output:
e.g:
Code:
tar: libxkbfile-1.1.0.tar.bz2\r: cannot open: No such file or directory
i thought i typed it wrong and checked that i typed it correctly and i did, i even got a friend to double check for me that i typed it correctly.
thinking that grep, tar, gawk or bash wasn't working correctly i recompiled them, double checked that they weren't spitting out any errors or warnings that needed attention and reinstalled them.
unfortunately they all returned without errors and the re-installation didn't fix the problem.
so i need help, i've gone though all the problems i think it could be having and i have no idea where it's getting /r from.