RE: Interactive job control and looping constructs

2014-12-31 Thread Ed Avis
Thanks for your reply.  I am glad to hear that this is already on the wish list,
although I appreciate it is not straightforward to implement.

A stopgap might be to make Ctrl-Z do nothing when the currently running command 
is a loop or other flow control construct.
Instead it would print a message explaining that only the current subprocess 
would be interrupted, and saying to hit Ctrl-Z again if that is what you really 
wanted.  I hope this might go some way to making things less confusing, and be 
relatively quick to hack up.

-- 
Ed Avis 

__
This email has been scanned by the Symantec Email Security.cloud service.
For more information please visit http://www.symanteccloud.com
__


Re: tab completion sort by modification time

2014-12-31 Thread kamaraju kusumanchi
On Fri, Dec 26, 2014 at 7:48 AM, Greg Wooledge  wrote:
> On Thu, Dec 25, 2014 at 12:34:08AM -0500, kamaraju kusumanchi wrote:
>> I would like to request a new feature in bash.
>>
>> When doing a tab completion inside a directory, I would like the files
>> to be listed in the order of modification time (similar to ls -rt).
>
> I think there would be a larger general interest if this were expanded
> to a shopt that affects the ordering of globs as well.  It's pretty
> common for people in #bash to ask for a script that will return the
> oldest file (or newest file, or oldest 10 files, etc.) in a directory.
> Doing this right now is possible (using [[ $file1 -ot $file2 ]] in a
> loop) but awkward, particularly if you want more than one file.

Cool! Thanks for your reply Greg. So it is obvious that there are
others who would like to see this feature implemented.

How are the feature requests tracked for bash? Is it enough to send
the email to this list or should I have to create an item at
https://savannah.gnu.org/support/?group=bash&func=browse&set=open ?

thanks
raju
-- 
Kamaraju S Kusumanchi
http://malayamaarutham.blogspot.com/