From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 26514 invoked by alias); 14 Apr 2012 15:43:19 -0000 Mailing-List: contact zsh-users-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Users List List-Post: List-Help: X-Seq: 17006 Received: (qmail 7985 invoked from network); 14 Apr 2012 15:43:08 -0000 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_LOW autolearn=ham version=3.3.2 Received-SPF: pass (ns1.primenet.com.au: SPF record at _spf.eastlink.ca designates 24.224.136.13 as permitted sender) X-CMAE-Score: 0 X-CMAE-Analysis: v=2.0 cv=cubgYyEi c=1 sm=1 a=2frB+lQ33in3Y4iuP+4efw==:17 a=wfYgvVYxD2IA:10 a=LVlZh0Pq_fgA:10 a=IkcTkHD0fZMA:10 a=Q3YNarz01ndSZu_34E4A:9 a=QEXdDO2ut3YA:10 a=Y4g+zi6NJtbRuBVJrbSZ6Q==:117 Message-id: <4F899B07.6040700@eastlink.ca> Date: Sat, 14 Apr 2012 08:43:03 -0700 From: Ray Andrews User-Agent: Mozilla/5.0 (X11; Linux i686; rv:11.0) Gecko/20120312 Thunderbird/11.0 MIME-version: 1.0 To: Mikael Magnusson Cc: zsh-users@zsh.org Subject: Re: write a command line. References: <4F885F3B.9000402@eastlink.ca> In-reply-to: Content-type: text/plain; charset=UTF-8; format=flowed Content-transfer-encoding: 7bit On 13/04/12 10:55 AM, Mikael Magnusson wrote: > On 13 April 2012 19:15, Ray Andrews wrote: >> Gentlemen, > [...] >> But I can't believe that zsh doesn't have some simple way of >> writing some string to the prompt line and just leaving it there. > print -z hello > Mikael, Thanks, that's exactly what I want. Now I can just create my command inside the script, save it as '$string' and: 'print -z $string' does the trick. I expected the answer would be dead simple but it is amazing how hard it can be to find an answer to even something so basic. It's mostly a question of knowing how to express the problem. The way I've expressed it, people seem to think I'm looking for something complicated.