← Back to team overview

clicompanion-devs team mailing list archive

[Bug 892448] [NEW] Command list includes incorrect commands

 

Public bug reported:

Here are three problems I found in a few quick tests:

(1) ps auxww | grep @

This prompts for a process (really a process ID).  It has two problems:

(1A) If you provide the number 1 as a process id, you get info on all
processes with a 1 anywhere in their output from ps u, rather than just
the info for PID 1.

(1B) It is inefficient and poor practice to output way more information
that you need, and then use a second process to select from it, unless
you have no other option.  The way to tell ps to output info for the
process with PID 1 is -p 1 -- why was this not used?

(2) cp ?

This can never work.  cp needs source and destination as mandatory
parameters, so prompting for only one will always fail.

(3) mv ?

This, like cp, can never work.  mv needs source and destination as
mandatory parameters, so prompting for only one will always fail.

** Affects: clicompanion
     Importance: Medium
     Assignee: Duane Hinnen (duanedesign)
         Status: Confirmed

** Changed in: clicompanion
   Importance: Undecided => Medium

** Changed in: clicompanion
       Status: New => Confirmed

** Changed in: clicompanion
     Assignee: (unassigned) => Duane Hinnen (duanedesign)

-- 
You received this bug notification because you are a member of CLI
Companion Development Team, which is subscribed to CLI Companion.
https://bugs.launchpad.net/bugs/892448

Title:
  Command list includes incorrect commands

Status in CLI Companion:
  Confirmed

Bug description:
  Here are three problems I found in a few quick tests:

  (1) ps auxww | grep @

  This prompts for a process (really a process ID).  It has two
  problems:

  (1A) If you provide the number 1 as a process id, you get info on all
  processes with a 1 anywhere in their output from ps u, rather than just
  the info for PID 1.

  (1B) It is inefficient and poor practice to output way more information
  that you need, and then use a second process to select from it, unless
  you have no other option.  The way to tell ps to output info for the
  process with PID 1 is -p 1 -- why was this not used?

  (2) cp ?

  This can never work.  cp needs source and destination as mandatory
  parameters, so prompting for only one will always fail.

  (3) mv ?

  This, like cp, can never work.  mv needs source and destination as
  mandatory parameters, so prompting for only one will always fail.

To manage notifications about this bug go to:
https://bugs.launchpad.net/clicompanion/+bug/892448/+subscriptions


Follow ups

References