[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: sha*sum and filenames with backslashes
From: |
Andreas Schwab |
Subject: |
Re: sha*sum and filenames with backslashes |
Date: |
Fri, 06 Jul 2007 13:21:56 +0200 |
User-agent: |
Gnus/5.110006 (No Gnus v0.6) Emacs/22.1 (gnu/linux) |
"Steve Ward" <address@hidden> writes:
> Instead of handling some specific control characters (\n and \r) and the
> backslash, what about using something like the "quoting-style" functionality
> used by 'ls'? I think it would be a more general solution.
The problem is backward compatibility. The output must be a proper
extension of the older formats, without changing the format for file
names that were properly handled by previous versions.
> I personally think the "escape" quoting style would best fit what md5sum
> already does, but I guess it really depends on who's going to be reading the
> file names (human, shell, etc.).
That would break backwards compatibility for file names with spaces.
Andreas.
--
Andreas Schwab, SuSE Labs, address@hidden
SuSE Linux Products GmbH, Maxfeldstraße 5, 90409 Nürnberg, Germany
PGP key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5
"And now for something completely different."