bug-ddrescue
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Bug-ddrescue] Cannot handle "$" in the filename for destination or


From: Matthew Ruffalo
Subject: Re: [Bug-ddrescue] Cannot handle "$" in the filename for destination or logfile
Date: Sat, 06 Apr 2013 16:32:23 -0400
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130404 Thunderbird/17.0.5

Hi Scott-

This is not ddrescue behavior; this is your shell (presumably bash) expanding $MFT into the (empty) contents of the variable named MFT. ddrescue is dutifully writing to exactly the file name that it is given.

To prevent this variable expansion, use single quotes:

$ echo "inode_0_$MFT"
inode_0_
$ echo 'inode_0_$MFT'
inode_0_$MFT

MMR...

On 04/06/2013 04:20 PM, Scott Dwyer wrote:
This would probably not be a bug to anyone else but me, but as I might have mentioned before, I am working on software to use ddrescue to extract individual files from a disk. My problem is that the "$" in the file name for either the destination file or the log file causes part of the name to not appear.

The command:
ddrescue -i16384 -o0 -s258048 /dev/sdb1 "inode_0_$MFT" "inode_0_part0_$MFT.log"

Results in the destination file name to be "inode_0_", and the logfile name to be "inode_0_part0_". From my testing it seems that anything after the $ until the next special character is lost.

Thanks,

Scott

_______________________________________________
Bug-ddrescue mailing list
address@hidden
https://lists.gnu.org/mailman/listinfo/bug-ddrescue




reply via email to

[Prev in Thread] Current Thread [Next in Thread]