[Fink-users] Problem with bash-completion and 'open' command under 10.5.1?
I've noticed that very recently completion for the 'open' command seems broken. I'm running 10.5.1, and bash-completion-20060301-3 under fink 0.28.0 . Here's an example of when I try to complete a file name with TAB: > [machine:/usr/src/swdocs/dev/vhaag/projects/hh] > $ open fo-bash: COMP_WORDS[2]: unbound variable I typed 'open fo' and then TAB, and I get the 'unbound variable error' kicked back. Is this a known problem? Is there a work-around? Thanks! -- Viktor Haag - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/___ Fink-users mailing list Fink-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/fink-users
Re: [Fink-users] Problem with bash-completion and 'open' command under 10.5.1?
On Thursday 24 January 2008 11:13:10 am Viktor Haag wrote: > I've noticed that very recently completion for the 'open' command seems > broken. I'm running 10.5.1, and bash-completion-20060301-3 under fink > 0.28.0 . > > Here's an example of when I try to complete a file name with TAB: > > [machine:/usr/src/swdocs/dev/vhaag/projects/hh] > > $ open fo-bash: COMP_WORDS[2]: unbound variable > > I typed 'open fo' and then TAB, and I get the 'unbound variable error' > kicked back. > > Is this a known problem? Is there a work-around? > > Thanks! > > -- > Viktor Haag It works for me, seemingly. You're definitely on revision 3? This was added with a note from the maintainer saying that it was supposed to contain fixes for bash 3. -- Alexander K. Hansen akh AT finkproject DOT org Fink User Liaison and Documenter signature.asc Description: This is a digitally signed message part. - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/___ Fink-users mailing list Fink-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/fink-users
Re: [Fink-users] Problem with bash-completion and 'open' command under 10.5.1?
On Jan 24, 2008 11:13 AM, Viktor Haag <[EMAIL PROTECTED]> wrote: > > [machine:/usr/src/swdocs/dev/vhaag/projects/hh] > > $ open fo-bash: COMP_WORDS[2]: unbound variable That looks like you've defined some custom completion rules using the "complete" builtin, and something in your completion func is messed up... -- Mark J. Reed <[EMAIL PROTECTED]> - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ Fink-users mailing list Fink-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/fink-users
Re: [Fink-users] Problem with bash-completion and 'open' command under 10.5.1?
On 24/01/2008, Mark J. Reed <[EMAIL PROTECTED]> wrote: > > On Jan 24, 2008 11:13 AM, Viktor Haag <[EMAIL PROTECTED]> wrote: > > > [machine:/usr/src/swdocs/dev/vhaag/projects/hh] > > > $ open fo-bash: COMP_WORDS[2]: unbound variable > > That looks like you've defined some custom completion rules using the > "complete" builtin, and something in your completion func is messed > up... > I have not done this to the best of my knowledge; where would such custom completion rules get stored? -- V. - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/___ Fink-users mailing list Fink-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/fink-users
Re: [Fink-users] Problem with bash-completion and 'open' command under 10.5.1?
On 24/01/2008, Alexander K. Hansen <[EMAIL PROTECTED]> wrote: > > It works for me, seemingly. > > You're definitely on revision 3? This was added with a note from the > maintainer saying that it was supposed to contain fixes for bash 3. > Well, that's the version that 'fink info' says is installed; however, I also notice that I'm using /usr/bin/bash which reports itself as 3.2.17(1). So this is a problem with Apple's bash, then I presume, and not a problem with fink's bash at all? If so, I apologize for my original query... -- V. - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/___ Fink-users mailing list Fink-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/fink-users
Re: [Fink-users] Problem with bash-completion and 'open' command under 10.5.1?
On Thursday 24 January 2008 01:56:33 pm Viktor Haag wrote: > On 24/01/2008, Alexander K. Hansen <[EMAIL PROTECTED]> wrote: > > It works for me, seemingly. > > > > You're definitely on revision 3? This was added with a note from the > > maintainer saying that it was supposed to contain fixes for bash 3. > > Well, that's the version that 'fink info' says is installed; however, I > also notice that I'm using /usr/bin/bash which reports itself as 3.2.17(1). > > So this is a problem with Apple's bash, then I presume, and not a problem > with fink's bash at all? If so, I apologize for my original query... > > -- > V. I'm using the built-in bash as well. I should point out that I really haven't done exhaustive attempts to replicate your issue--just cursory ones. -- Alexander K. Hansen akh AT finkproject DOT org Fink User Liaison and Documenter - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ Fink-users mailing list Fink-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/fink-users
Re: [Fink-users] Problem with bash-completion and 'open' command under 10.5.1?
On Jan 24, 2008 1:53 PM, Viktor Haag <[EMAIL PROTECTED]> wrote: > I have not done this to the best of my knowledge; where would such custom > completion rules get stored? The rules aren't persisted, so they would take the form of "complete" commands inside one of the startup files (e.g. /etc/bash_profile, /etc/bashrc, ~/.bashrc, ~/.bash_profile). -- Mark J. Reed <[EMAIL PROTECTED]> - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ Fink-users mailing list Fink-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/fink-users
Re: [Fink-users] Problem with bash-completion and 'open' command under 10.5.1?
Hrm... I will check, but to the best of my knowledge, I haven't added any such custom completions V. --Original Message-- From: Mark J. Reed Sender: [EMAIL PROTECTED] To: Viktor Haag Cc: fink-users@lists.sourceforge.net Subject: Re: [Fink-users] Problem with bash-completion and 'open' command under 10.5.1? Sent: 24 Jan 2008 14:17 On Jan 24, 2008 1:53 PM, Viktor Haag <[EMAIL PROTECTED]> wrote: > I have not done this to the best of my knowledge; where would such custom > completion rules get stored? The rules aren't persisted, so they would take the form of "complete" commands inside one of the startup files (e.g. /etc/bash_profile, /etc/bashrc, ~/.bashrc, ~/.bash_profile). -- Mark J. Reed <[EMAIL PROTECTED]> - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ Fink-users mailing list Fink-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/fink-users
Re: [Fink-users] Problem with bash-completion and 'open' command under 10.5.1?
You would remember, i'm sure. It's possible some package or other did such a thing - i can readily imagine adding custom completion to "open" such that "open -a" completes further arguments as application names from /Applications, for instance. Did you say you're using /usr/bin/bash? Is that distinct from /bin/bash? On 1/24/08, Viktor Haag <[EMAIL PROTECTED]> wrote: > Hrm... I will check, but to the best of my knowledge, I haven't added any > such custom completions > > V. > --Original Message-- > From: Mark J. Reed > Sender: [EMAIL PROTECTED] > To: Viktor Haag > Cc: fink-users@lists.sourceforge.net > Subject: Re: [Fink-users] Problem with bash-completion and 'open' command > under 10.5.1? > Sent: 24 Jan 2008 14:17 > > On Jan 24, 2008 1:53 PM, Viktor Haag <[EMAIL PROTECTED]> wrote: > > I have not done this to the best of my knowledge; where would such custom > > completion rules get stored? > > The rules aren't persisted, so they would take the form of "complete" > commands inside one of the startup files (e.g. /etc/bash_profile, > /etc/bashrc, ~/.bashrc, ~/.bash_profile). > > -- > Mark J. Reed <[EMAIL PROTECTED]> > > > > -- Mark J. Reed <[EMAIL PROTECTED]> - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ Fink-users mailing list Fink-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/fink-users
Re: [Fink-users] Problem with bash-completion and 'open' command under 10.5.1?
On 24/01/2008, Mark J. Reed <[EMAIL PROTECTED]> wrote: > > You would remember, i'm sure. It's possible some package or other did > such a thing - i can readily imagine adding custom completion to > "open" such that "open -a" completes further arguments as application > names from /Applications, for instance. I cannot see anything that does this sort of thing. Did you say you're using /usr/bin/bash? Is that distinct from /bin/bash? No, it was mistyped; I'm actually using /bin/bash... -- V. - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/___ Fink-users mailing list Fink-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/fink-users
Re: [Fink-users] Problem with bash-completion and 'open' command under 10.5.1?
On 24/01/2008, Mark J. Reed <[EMAIL PROTECTED]> wrote: > > On Jan 24, 2008 1:53 PM, Viktor Haag <[EMAIL PROTECTED]> wrote: > > I have not done this to the best of my knowledge; where would such > custom > > completion rules get stored? > > The rules aren't persisted, so they would take the form of "complete" > commands inside one of the startup files (e.g. /etc/bash_profile, > /etc/bashrc, ~/.bashrc, ~/.bash_profile). > Yes; I have nothing along those lines, and I'm having trouble parsing Fink's own /sw/etc/bash_completion file, which I assume is the master completion file for the bash_completion package... -- Viktor - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/___ Fink-users mailing list Fink-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/fink-users
Re: [Fink-users] Problem with bash-completion and 'open' command under 10.5.1?
such a thing - i can readily imagine adding custom completion to "open" such that "open -a" completes further arguments as application names from /Applications, for instance. The _open completion function in zsh does this. - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ Fink-users mailing list Fink-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/fink-users