Re: how to limit autofill of executables in 'cygwin-bash' to a list of 'extensions'

2010-07-13 Thread Chet Ramey
On 7/13/10 9:01 PM, Linda Walsh wrote: > Ran across this one today and tried it again. I don't > know why, but when it first came out, I gave it a try to accomplish > similar, but had no luck. Now it's working as I _think_ it's > supposed to be (?). > > FIGNORE=".dll;.DLL" > (assuming defau

Re: how to limit autofill of executables in 'cygwin-bash' to a list of 'extensions'

2010-07-13 Thread Linda Walsh
Chet Ramey wrote: You have to modify the source. findcmd.c:executable_file and findcmd.c:file_status are the functions to change. Bash just uses the standard exec bit. --- Ran across this one today and tried it again. I don't know why, but when it first came out, I gave it a try to a

Re: How to run something before invoking the inputted command?

2010-07-13 Thread Clark J. Wang
On Tue, Jul 13, 2010 at 8:22 PM, Greg Wooledge wrote: > On Tue, Jul 13, 2010 at 11:19:34AM +0800, Clark J. Wang wrote: > > My PS1 depends much on PROMPT_COMMAND. For example, my PROMPT_COMMAND > will > > trim very long $PWD to a shorter one (depends on the window size of > current > > terminal):

Bad performance for substring replacement by pattern

2010-07-13 Thread Yi Yan
Hi, I used the following Bash script to test substring replacement operator. It is performance get worse very quickly with the increasing of the string length. I test the script with Bash(4.1) on Debian Linux machine. See the execution time difference by increasing the $NUM in the

Re: How to run something before invoking the inputted command?

2010-07-13 Thread Greg Wooledge
On Tue, Jul 13, 2010 at 11:19:34AM +0800, Clark J. Wang wrote: > My PS1 depends much on PROMPT_COMMAND. For example, my PROMPT_COMMAND will > trim very long $PWD to a shorter one (depends on the window size of current > terminal): > > [r...@server ~/directory/lng/very/a/is/this] #>