* [Qemu-devel] [Bug 1022331] [NEW] -cpu ? causes confusion when directory has 1-character length filenames
@ 2012-07-08 17:16 Mikko Sivulainen
2012-07-08 19:44 ` [Qemu-devel] [Bug 1022331] " Michael Tokarev
` (3 more replies)
0 siblings, 4 replies; 8+ messages in thread
From: Mikko Sivulainen @ 2012-07-08 17:16 UTC (permalink / raw)
To: qemu-devel
Public bug reported:
When user is in a directory with 1-character long filenames, parameter -cpu ? causes shell to expand ? into filename, which can cause a very confused user.
One solution would be to replace/add alias to -cpu ?, for example
-cpulist
** Affects: qemu
Importance: Undecided
Status: New
--
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/1022331
Title:
-cpu ? causes confusion when directory has 1-character length
filenames
Status in QEMU:
New
Bug description:
When user is in a directory with 1-character long filenames, parameter -cpu ? causes shell to expand ? into filename, which can cause a very confused user.
One solution would be to replace/add alias to -cpu ?, for example
-cpulist
To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/1022331/+subscriptions
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Qemu-devel] [Bug 1022331] Re: -cpu ? causes confusion when directory has 1-character length filenames
2012-07-08 17:16 [Qemu-devel] [Bug 1022331] [NEW] -cpu ? causes confusion when directory has 1-character length filenames Mikko Sivulainen
@ 2012-07-08 19:44 ` Michael Tokarev
2012-07-08 22:45 ` Peter Maydell
2012-07-09 12:33 ` Peter Maydell
` (2 subsequent siblings)
3 siblings, 1 reply; 8+ messages in thread
From: Michael Tokarev @ 2012-07-08 19:44 UTC (permalink / raw)
To: qemu-devel
Please take this to your shell. The queston mark is a metacharacter for
any *nix shell, you should just quote or backslash it. The same
question mark is not special on windows.
Thanks,
/mjt
** Changed in: qemu
Status: New => Invalid
--
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/1022331
Title:
-cpu ? causes confusion when directory has 1-character length
filenames
Status in QEMU:
Invalid
Bug description:
When user is in a directory with 1-character long filenames, parameter -cpu ? causes shell to expand ? into filename, which can cause a very confused user.
One solution would be to replace/add alias to -cpu ?, for example
-cpulist
To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/1022331/+subscriptions
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [Qemu-devel] [Bug 1022331] Re: -cpu ? causes confusion when directory has 1-character length filenames
2012-07-08 19:44 ` [Qemu-devel] [Bug 1022331] " Michael Tokarev
@ 2012-07-08 22:45 ` Peter Maydell
2012-07-09 8:27 ` Daniel P. Berrange
0 siblings, 1 reply; 8+ messages in thread
From: Peter Maydell @ 2012-07-08 22:45 UTC (permalink / raw)
To: Bug 1022331; +Cc: qemu-devel
On 8 July 2012 20:44, Michael Tokarev <1022331@bugs.launchpad.net> wrote:
> Please take this to your shell. The queston mark is a metacharacter for
> any *nix shell, you should just quote or backslash it. The same
> question mark is not special on windows.
I think it's a legitimate complaint to say that this is not fantastically
friendly UI on QEMU's part though. (I've been bitten by it myself and
I've been dealing with Bourne shells for over a decade.), Picking a
string that requires metacharacter-quoting in the major shell most
people use is just a silly choice.
I've thought before that we ought to make sure we have synonyms (eg 'help')
for all the list things that currently want '?'. Then we could mark '?'
as deprecated or present for back-compatibility only.
-- PMM
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [Qemu-devel] [Bug 1022331] Re: -cpu ? causes confusion when directory has 1-character length filenames
2012-07-08 22:45 ` Peter Maydell
@ 2012-07-09 8:27 ` Daniel P. Berrange
2012-07-09 17:29 ` Stefan Weil
0 siblings, 1 reply; 8+ messages in thread
From: Daniel P. Berrange @ 2012-07-09 8:27 UTC (permalink / raw)
To: Peter Maydell; +Cc: Bug 1022331, qemu-devel
On Sun, Jul 08, 2012 at 11:45:34PM +0100, Peter Maydell wrote:
> On 8 July 2012 20:44, Michael Tokarev <1022331@bugs.launchpad.net> wrote:
> > Please take this to your shell. The queston mark is a metacharacter for
> > any *nix shell, you should just quote or backslash it. The same
> > question mark is not special on windows.
>
> I think it's a legitimate complaint to say that this is not fantastically
> friendly UI on QEMU's part though. (I've been bitten by it myself and
> I've been dealing with Bourne shells for over a decade.), Picking a
> string that requires metacharacter-quoting in the major shell most
> people use is just a silly choice.
>
> I've thought before that we ought to make sure we have synonyms (eg 'help')
> for all the list things that currently want '?'. Then we could mark '?'
> as deprecated or present for back-compatibility only.
Or just introduce another character as an alternative to '?', eg '-'
or even accept the string 'help' eg "-cpu help"
Daniel
--
|: http://berrange.com -o- http://www.flickr.com/photos/dberrange/ :|
|: http://libvirt.org -o- http://virt-manager.org :|
|: http://autobuild.org -o- http://search.cpan.org/~danberr/ :|
|: http://entangle-photo.org -o- http://live.gnome.org/gtk-vnc :|
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Qemu-devel] [Bug 1022331] Re: -cpu ? causes confusion when directory has 1-character length filenames
2012-07-08 17:16 [Qemu-devel] [Bug 1022331] [NEW] -cpu ? causes confusion when directory has 1-character length filenames Mikko Sivulainen
2012-07-08 19:44 ` [Qemu-devel] [Bug 1022331] " Michael Tokarev
@ 2012-07-09 12:33 ` Peter Maydell
2012-08-26 12:06 ` Aurelien Jarno
2012-09-07 14:33 ` Aurelien Jarno
3 siblings, 0 replies; 8+ messages in thread
From: Peter Maydell @ 2012-07-09 12:33 UTC (permalink / raw)
To: qemu-devel
Proposed patch that would allow '-cpu help' &co:
http://patchwork.ozlabs.org/patch/169798/
--
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/1022331
Title:
-cpu ? causes confusion when directory has 1-character length
filenames
Status in QEMU:
Invalid
Bug description:
When user is in a directory with 1-character long filenames, parameter -cpu ? causes shell to expand ? into filename, which can cause a very confused user.
One solution would be to replace/add alias to -cpu ?, for example
-cpulist
To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/1022331/+subscriptions
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [Qemu-devel] [Bug 1022331] Re: -cpu ? causes confusion when directory has 1-character length filenames
2012-07-09 8:27 ` Daniel P. Berrange
@ 2012-07-09 17:29 ` Stefan Weil
0 siblings, 0 replies; 8+ messages in thread
From: Stefan Weil @ 2012-07-09 17:29 UTC (permalink / raw)
To: Bug 1022331; +Cc: qemu-devel
Am 09.07.2012 10:27, schrieb Daniel Berrange:
> On Sun, Jul 08, 2012 at 11:45:34PM +0100, Peter Maydell wrote:
>> On 8 July 2012 20:44, Michael Tokarev<1022331@bugs.launchpad.net> wrote:
>>> Please take this to your shell. The queston mark is a metacharacter for
>>> any *nix shell, you should just quote or backslash it. The same
>>> question mark is not special on windows.
>>
>> I think it's a legitimate complaint to say that this is not fantastically
>> friendly UI on QEMU's part though. (I've been bitten by it myself and
>> I've been dealing with Bourne shells for over a decade.), Picking a
>> string that requires metacharacter-quoting in the major shell most
>> people use is just a silly choice.
>>
>> I've thought before that we ought to make sure we have synonyms (eg 'help')
>> for all the list things that currently want '?'. Then we could mark '?'
>> as deprecated or present for back-compatibility only.
I fully agree.
>
> Or just introduce another character as an alternative to '?', eg '-'
> or even accept the string 'help' eg "-cpu help"
>
> Daniel
What about "--cpu [list|help|?]"?
It is already possible to use "--cpu ?anystring" because the code
only tests the first character, but I don't know whether that was
intentional.
As Peter already wrote, there are more options which support '?'
today (e.g. the list of ethernet NICs), and all should use a similar
syntax.
Regards
Stefan W.
PS.
I'd also deprecate long command line options starting with a single '-'.
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Qemu-devel] [Bug 1022331] Re: -cpu ? causes confusion when directory has 1-character length filenames
2012-07-08 17:16 [Qemu-devel] [Bug 1022331] [NEW] -cpu ? causes confusion when directory has 1-character length filenames Mikko Sivulainen
2012-07-08 19:44 ` [Qemu-devel] [Bug 1022331] " Michael Tokarev
2012-07-09 12:33 ` Peter Maydell
@ 2012-08-26 12:06 ` Aurelien Jarno
2012-09-07 14:33 ` Aurelien Jarno
3 siblings, 0 replies; 8+ messages in thread
From: Aurelien Jarno @ 2012-08-26 12:06 UTC (permalink / raw)
To: qemu-devel
** Changed in: qemu
Status: Invalid => Fix Committed
--
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/1022331
Title:
-cpu ? causes confusion when directory has 1-character length
filenames
Status in QEMU:
Fix Committed
Bug description:
When user is in a directory with 1-character long filenames, parameter -cpu ? causes shell to expand ? into filename, which can cause a very confused user.
One solution would be to replace/add alias to -cpu ?, for example
-cpulist
To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/1022331/+subscriptions
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Qemu-devel] [Bug 1022331] Re: -cpu ? causes confusion when directory has 1-character length filenames
2012-07-08 17:16 [Qemu-devel] [Bug 1022331] [NEW] -cpu ? causes confusion when directory has 1-character length filenames Mikko Sivulainen
` (2 preceding siblings ...)
2012-08-26 12:06 ` Aurelien Jarno
@ 2012-09-07 14:33 ` Aurelien Jarno
3 siblings, 0 replies; 8+ messages in thread
From: Aurelien Jarno @ 2012-09-07 14:33 UTC (permalink / raw)
To: qemu-devel
** Changed in: qemu
Status: Fix Committed => Fix Released
--
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/1022331
Title:
-cpu ? causes confusion when directory has 1-character length
filenames
Status in QEMU:
Fix Released
Bug description:
When user is in a directory with 1-character long filenames, parameter -cpu ? causes shell to expand ? into filename, which can cause a very confused user.
One solution would be to replace/add alias to -cpu ?, for example
-cpulist
To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/1022331/+subscriptions
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2012-09-07 14:41 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-07-08 17:16 [Qemu-devel] [Bug 1022331] [NEW] -cpu ? causes confusion when directory has 1-character length filenames Mikko Sivulainen
2012-07-08 19:44 ` [Qemu-devel] [Bug 1022331] " Michael Tokarev
2012-07-08 22:45 ` Peter Maydell
2012-07-09 8:27 ` Daniel P. Berrange
2012-07-09 17:29 ` Stefan Weil
2012-07-09 12:33 ` Peter Maydell
2012-08-26 12:06 ` Aurelien Jarno
2012-09-07 14:33 ` Aurelien Jarno
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).