bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

erroneous paste detection


From: stig
Subject: erroneous paste detection
Date: 5 Feb 2002 20:39:20 -0000

Bash Version: 2.04
Patch Level: 21
Release Status: release

Description:
        DWIM can get in the way, but it can also help out a lot.

        one place where it could help would be in the case of accidentally
        pasting text into a shell window...mayhaps you think you've got a url 
to paste
        but you've got part of an email with '>' at the head of some lines and 
so you
        paste and get a bunch of dinging and a directory littered with new 
files for
        each line that began with >

        this is easy to do and sometimes an annoying and disconcerting waste of 
time.

Fix:
        when there's a lot of typeahead, and the last line was bogus, look at
        the next line to see if that's bogus, and if it is, then don't run the 
rest of
        the commands...perhaps put them in history with '#' or something.
        




reply via email to

[Prev in Thread] Current Thread [Next in Thread]