Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 2026 - emerge does not halt when invalid short options are on command line
Summary: emerge does not halt when invalid short options are on command line
Status: VERIFIED FIXED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Unclassified (show other bugs)
Hardware: x86 Linux
: High major (vote)
Assignee: Daniel Robbins (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-04-23 03:23 UTC by Matt Boehlig
Modified: 2011-10-30 22:19 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Matt Boehlig 2002-04-23 03:23:58 UTC
Portage 1.9.2  
When an error occurs parsing the command line, execution should stop.  Otherwise needless or  
dangerous things could execute.  
  
example:  
# emerge -nocolor  
!!! Error: -l is an invalid short action or option.  
!!! Error: -r is an invalid short action or option.  
  
The following packages are going to be unmerged :     <-- should stop, we never intended -con 
  
sys-apps/portage  
...  
  
Good thing there is the 5 second wait to confirm.  
  
example:  
emerge -l  
!!! Error: -l is an invalid short action or option.  
  
 * Regenerating GNU info directory index...           <-- continues as if command line were empty 
 
# emerge -Vl 
!!! Error: -l is an invalid short action or option.    
Portage 1.9.2 
 
It seems to affect only short options (-) and not long options (--).
Comment 1 Daniel Robbins (RETIRED) gentoo-dev 2002-04-23 17:40:25 UTC
Will be fixed in 1.9.3