X-Spam-Check-By: sourceware.org Message-ID: <17393e3e0703010759i1ece9c7asbb1955e968438db1@mail.gmail.com> Date: Thu, 1 Mar 2007 10:59:19 -0500 From: "Matt Wozniski" To: cygwin AT cygwin DOT com Subject: Re: Bash-Scripting: any way to pre-initialize readline's edit buffer with a user-defined string? In-Reply-To: <45E6EAA0.5090603@hima.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <45E6EAA0 DOT 5090603 AT hima DOT com> X-IsSubscribed: yes Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com > Most of the items have default values, and I would find it > very user-friendly, if readline's edit buffer would be pre- > initialized with this default value, instead of an empty string. > Then the user just has to hit to enter the default > value, very comfortable. I don't believe that you can do that with readline, but I may be wrong. I know that you can do it with ZShell. If you're interested, try installing the zsh package and doing 'man zshzle' and 'man zshbuiltins' - look up "print -z" in particular. And, either way, it's OT for this list. ~Matt -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/