delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2016/06/02/12:40:36

X-Recipient: archive-cygwin AT delorie DOT com
DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:mime-version:from:date:message-id:subject:to
:content-type; q=dns; s=default; b=g1E9mE+20I+yAmjGRU2WPOLJHbKsz
xM3WOmH7IOQfR4lvQqMvxorU38Dyly57L08Lkpg4VWt0pzd8zvDJ7gz2SJlpGHby
IAFzuFsvSKfNea5GesNBQ+/4qy8m/uiJWdwVHte1oCNYyDKrXukBrCZcGIHmhDmS
hb3ZBseIfru8AI=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:mime-version:from:date:message-id:subject:to
:content-type; s=default; bh=SfE4bBjFHmVEqsg3UlEYbBVcQ/k=; b=ipB
J0JgQ4SxBWzhdvKxjMXz71QAqLODEkituycqRO9ggHwFLe3xIn3Bng3K/7wDdA6a
dpO5D9o6NMYjYWf0xA//zj9kCRZdH+1tALzardV/LVTXx4vaj5sinijS2LBtMWU1
szC1bGZeIhVc2a3gvCGJTceebOY0Lyjx0ISnG6J4=
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.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
Authentication-Results: sourceware.org; auth=none
X-Virus-Found: No
X-Spam-SWARE-Status: No, score=-0.1 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2 spammy=struggle, naturally, SSH, shortcuts
X-HELO: mail-wm0-f47.google.com
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:sender:from:date:message-id:subject :to; bh=XAVyQZ2QW8j+b3poi1nMHoGjqdZ/t8h+MVxePmb7SzY=; b=RXVi/V9yPUvaz/r+Rj3zglAPH0RnbGPl6DxM9NE8VuaJEoTow+nTsfyZF5dXImIWfw 20mnNzS9I+7F4Tdzvmu/ytMkJAya/rc787YUzdGWjSHt5sMCIEOuItAM/jhqryD74117 qE3rAFYaDfYQhVlFTapHNb7957//8pL5u8Qq6/H+LTi6untN5vz2KoA9Fyv7wdJlz3SA c+xtt9KgTShKLvHpYFOaJmTO9UgpLgXSt9+73G3sBz3ouwCMkw3agxTwM0EP3q9vqgKt 9luhWqVEICbHMbW3s6NEPqdmUeyZWpTmEIDiZOIFhNH1/B6BF9KNBzr5AAAa8ucMf99y 6JNQ==
X-Gm-Message-State: ALyK8tLt007TUSN1SPlNEAJ9f2qK3zW7l9vbEo/+PW5WtNSUbEnvhUsl85BYnRLil6X4cHeIwCBN35PgvN/nQA==
X-Received: by 10.28.19.71 with SMTP id 68mr26656799wmt.61.1464885601962; Thu, 02 Jun 2016 09:40:01 -0700 (PDT)
MIME-Version: 1.0
From: Christoffer Aasted <chr DOT aasted AT gmail DOT com>
Date: Thu, 2 Jun 2016 18:39:22 +0200
Message-ID: <CAM9yT0-Y7nJoHuQ_O=F_miMT8y+qAtKYnJA+ceF7DiX8wLwCvA@mail.gmail.com>
Subject: Windows shortcut "bash -c" the only way? Naturally it ignores profile and hence locale
To: cygwin AT cygwin DOT com

Hello Cygwin.

I struggle in creating a Windows shortcut that launches a command and
initializes the environment the way that the Cygwin64 Terminal
initializes.

C:\cygwin64\bin\mintty.exe /bin/bash -l -c "set ssh -t cha AT my DOT host
screen -r -d weechat"

I am aware that "bash -c" behaves much differently and does source
$HOME shell customizations /etc/profile, .bash_profile, .profile -
right?

I thought "-l" login shell was the solution.

I tried sourcing /etc/profile; .bash_profile and .profile but this
doesn't make fix anything.
C:\cygwin64\bin\mintty.exe /bin/bash -l -c "source /etc/profile; set
ssh -t cha AT my DOT host screen -r -d weechat"

The issue is that LANG is not properly set and even if I set it
manually before entering SSH with a "LANG=en_US.UTF-8" (where I know
my host has the locales properly set).

Why would we have to run "bash -c" on shortcuts ? Isn't sending a
command to mintty.exe supported or is the culprit cygwin?


Best Regards/Venlig Hilsen
Christoffer Aasted

--
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