NetBSD-Bugs archive

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

bin/39888: ksh stops autocomplete at | character -- clashes with noclobber



>Number:         39888
>Category:       bin
>Synopsis:       ksh & autocomplete & noclobber is no good
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    bin-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Nov 10 01:15:01 +0000 2008
>Originator:     Martin S. Weber
>Release:        NetBSD 4.99.73
>Organization:
        
>Environment:
        
        
System: NetBSD agamemnon.entropie.local 4.99.73 NetBSD 4.99.73 (AGAMEMNON) #9: 
Mon Oct 20 20:50:07 EDT 2008 
root%agamemnon.entropie.local@localhost:/home/netbsd/obj/sys/arch/i386/compile/AGAMEMNON
 i386
Architecture: i386
Machine: i386
>Description:
        When setting noclobber in the /bin/ksh shell to prevent accidentally 
overwriting existing
        files with output redirection, what you have to use instead to do 
output redirection stops
        autocompletion from working. ksh though should realize that you are not 
using a commandline
        with pipes, but instead you are using the >| redirection and still 
enable file completion.
        This is with the emacs input bindings. Instead ksh enables command 
completion (probably
        because of the pipe character)
        
>How-To-Repeat:
        touch abcdef
        echo "bla" > abc<TAB> # abc gets expanded to abcdef
        echo "bla" >| abc<TAB> # no completion.
        touch fingah
        echo "bla" > fing<TAB> # fing gets expanded to fingah
        echo "bla" >| fing<TAB> # fing gets expanded to finger (1)
        
>Fix:
        none provided
        

>Unformatted:
        
        


Home | Main Index | Thread Index | Old Index