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
System: NetBSD agamemnon.entropie.local 4.99.73 NetBSD 4.99.73 (AGAMEMNON) #9: 
Mon Oct 20 20:50:07 EDT 2008 
Architecture: i386
Machine: i386
        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)
        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)
        none provided


Home | Main Index | Thread Index | Old Index