Tab Completion and Typical Behavior

Larry Hall (Cygwin) reply-to-list-only-lh@cygwin.com
Mon Mar 19 21:25:00 GMT 2007


robert_neville310@yahoo.com wrote:
> I have a question about tab completion in the console window. The
> .bash_profile exports the right paths and the console performs tab
> completion. My scripts can be found in ~/bin. I can tab out
> myscript.sh, but can not tab complete ./myscript.sh; or sh
> myscript.sh. Is this behavior normal? Can I change the console
> behavior to tab out ./myscript.sh?
> 
> #.bash_profile
> # Set PATH so it includes user's private bin if it exists
> if [ -d "${HOME}/bin" ] ; then
>    PATH=${HOME}/bin:${PATH}
> fi


WFFM.  Assuming the script is executable, it should work.  But if it isn't
executable, I would expect that it wouldn't work for either variant.  But
maybe you have two versions of 'myscript.sh', one in ~/bin and one
elsewhere, where the one elsewhere is executable and the one in ~/bin is
not.  If not, I'd recommend reading the bash man page for helpful hints.


-- 
Larry Hall                              http://www.rfk.com
RFK Partners, Inc.                      (508) 893-9779 - RFK Office
216 Dalton Rd.                          (508) 893-9889 - FAX
Holliston, MA 01746

_____________________________________________________________________

A: Yes.
 > Q: Are you sure?
 >> A: Because it reverses the logical flow of conversation.
 >>> Q: Why is top posting annoying in email?

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/



More information about the Cygwin mailing list