On Fri, 10 Jan 2003, Mike Vanecek wrote:

> I want to be in a terminal and type ed filename and have the editor open and 
> start editing filename in the background.

You can't use positional parameters in an alias; you need to use a 
function instead:

    # ed is a real program, so use something else to avoid confusion.
    # Usage: ged <file1 ... fileN>
    function ged {
        while [[ $1 ]]; do
            gedit $1 &
            shift
        done
    }

Put this in your .bashrc file, and either source it or log back in to
enable the function.

-- 
"Of course I'm in shape! Round's a shape, isn't it?"




-- 
redhat-list mailing list
unsubscribe mailto:[EMAIL PROTECTED]?subject=unsubscribe
https://listman.redhat.com/mailman/listinfo/redhat-list

Reply via email to