[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH] Fix double backslash problem in Windows
From: |
Laurent Vivier |
Subject: |
Re: [Qemu-devel] [PATCH] Fix double backslash problem in Windows |
Date: |
Thu, 10 Jan 2008 14:58:28 +0100 |
Le jeudi 10 janvier 2008 à 15:30 +0200, Avi Kivity a écrit :
> Johannes Schindelin wrote:
> > Hi,
> >
> > On Thu, 10 Jan 2008, Laurent Vivier wrote:
> >
> >
> >> Perhaps the best solution is to put "file=" option at the end of
> >> aliases, '\0' is marking the end of filename (it is likely the idea of
> >> andrzej about special characters).
> >>
> >
> > Oh, why not just make it a requirement that file= comes last, always?
> >
> >
>
> That's hardly intuitive. I would prefer some sort of escaping for \,
> and \=. It will also break if/when -drive gains another filename
> argument (say, for keeping shapshot data in).
I agree with our comments, but this not solves the original issue with
windows (double backslash).
- we can't use '\' because it force to double it for windows
- we must be able to escape characters to be able to use ',' and '=' in
filename (in fact ' ' is not an issue).
perhaps the solution is to use a different escape character ?
Do you like '^' ?
qemu -hda "my file" -> filename is "my file"
qemu -hda my^,file -> filename is "my,file"
qemu -drive file=my^^file -> filename is "my^file"
Johannes, I'm sorry, but it seems there is no other way than reparsing
(lightly) the string.
Laurent
--
----------------- address@hidden ------------------
"La perfection est atteinte non quand il ne reste rien à
ajouter mais quand il ne reste rien à enlever." Saint Exupéry
signature.asc
Description: Ceci est une partie de message numériquement signée
- Re: [Qemu-devel] [PATCH] Fix double backslash problem in Windows, (continued)
- Re: [Qemu-devel] [PATCH] Fix double backslash problem in Windows, Johannes Schindelin, 2008/01/09
- Re: [Qemu-devel] [PATCH] Fix double backslash problem in Windows, Laurent Vivier, 2008/01/09
- Re: [Qemu-devel] [PATCH] Fix double backslash problem in Windows, Laurent Vivier, 2008/01/10
- Re: [Qemu-devel] [PATCH] Fix double backslash problem in Windows, Johannes Schindelin, 2008/01/10
- Re: [Qemu-devel] [PATCH] Fix double backslash problem in Windows, Laurent Vivier, 2008/01/10
- Re: [Qemu-devel] [PATCH] Fix double backslash problem in Windows, Johannes Schindelin, 2008/01/10
- Re: [Qemu-devel] [PATCH] Fix double backslash problem in Windows, Laurent Vivier, 2008/01/10
- Re: [Qemu-devel] [PATCH] Fix double backslash problem in Windows, Avi Kivity, 2008/01/10
- Re: [Qemu-devel] [PATCH] Fix double backslash problem in Windows,
Laurent Vivier <=
- Re: [Qemu-devel] Fix double backslash problem in Windows, Jernej Simončič, 2008/01/10
- Re: [Qemu-devel] Fix double backslash problem in Windows, Laurent Vivier, 2008/01/10
- Re: [Qemu-devel] Fix double backslash problem in Windows, Laurent Vivier, 2008/01/10
- Re: [Qemu-devel] Fix double backslash problem in Windows, Laurent Vivier, 2008/01/11
- [Qemu-devel] Re: [PATCH] Fix double backslash problem in Windows, consul, 2008/01/10
- Re: [Qemu-devel] Re: [PATCH] Fix double backslash problem in Windows, Laurent Vivier, 2008/01/10
- Re: [Qemu-devel] [PATCH] Fix double backslash problem in Windows, Andreas Färber, 2008/01/09
- Re: [Qemu-devel] [PATCH] Fix double backslash problem in Windows, Laurent Vivier, 2008/01/09
- Re: [Qemu-devel] [PATCH] Fix double backslash problem in Windows, andrzej zaborowski, 2008/01/09
- Re: [Qemu-devel] [PATCH] Fix double backslash problem in Windows, Anthony Liguori, 2008/01/09