delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2010/03/30/13:54:24

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=-1.4 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SARE_MSGID_LONG40,T_TO_NO_BRKTS_FREEMAIL
X-Spam-Check-By: sourceware.org
MIME-Version: 1.0
In-Reply-To: <C742AC34C772EC4BAAF642C22E6079D301211253F002@NSPEXMBX-A.the-lab.llnl.gov>
References: <C742AC34C772EC4BAAF642C22E6079D301211253F002 AT NSPEXMBX-A DOT the-lab DOT llnl DOT gov>
Date: Tue, 30 Mar 2010 19:54:10 +0100
Message-ID: <416096c61003301154m5fe3ad27t52114493d7b85240@mail.gmail.com>
Subject: Re: spaces in title of mintty command
From: Andy Koppe <andy DOT koppe AT gmail DOT com>
To: cygwin AT cygwin DOT com
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

Roe, Kevin L.:
> I have been trying to get the title for mintty to work.
>
> Specifically, I want a title with spaces.
>
> I have tried:
>
> mintty -t one two =C2=A0 =C2=A0 =C2=A0result: =C2=A0obviously didn't work=
. =C2=A0It bombed.

Because 'one' is takes as the title, and 'two' as a command to execute.

> mintty -t "one two" =C2=A0 =C2=A0result: =C2=A0no title
> mintty -t 'one two' =C2=A0 =C2=A0result: =C2=A0no title

Works fine for me. Please note that bash's default prompt (i.e. the
PS1 variable) sets the terminal title to the current working
directory, thus overwriting anything you set with the -t option.

> mintty -t `one two` =C2=A0 =C2=A0result: =C2=A0Same as no quotes

Because that tries to run 'one' as a command.

Andy

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019