command_not_found_handle bash mechanism only passes single arg
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
bash (Ubuntu) |
Triaged
|
Wishlist
|
Unassigned |
Bug Description
Binary package hint: bash
When bash encounters a command that it can't locate, it calls the function command_
But bash only passes the first argument from the command line on to command_
For example, I have modified /etc/bash.bashrc to run this:
/usr/bin/python /usr/lib/
This allows me to type in the name of a machine I'd like to ssh to. As long as it isn't also the name of a program, then this works (and is very handy). But I can't do something like this:
parcher@myhost:$ remotehost -l archer
All that is passed to the command_
Just to be clear: this is an issue with what is being passed to the command_
Changed in bash: | |
importance: | Undecided → Wishlist |
status: | New → Confirmed |
This seems like a different use-case than what command-not-found was designed for. You may want to propose the idea to the bash developers at <email address hidden> . At seems like it could be useful, maybe they'll like it, too, and implement it :)