From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 106337 invoked by alias); 2 Jun 2016 16:40:16 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 106323 invoked by uid 89); 2 Jun 2016 16:40:15 -0000 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 Received: from mail-wm0-f47.google.com (HELO mail-wm0-f47.google.com) (74.125.82.47) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-GCM-SHA256 encrypted) ESMTPS; Thu, 02 Jun 2016 16:40:05 +0000 Received: by mail-wm0-f47.google.com with SMTP id z87so76870743wmh.0 for ; Thu, 02 Jun 2016 09:40:04 -0700 (PDT) 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 Received: by 10.28.229.208 with HTTP; Thu, 2 Jun 2016 09:39:22 -0700 (PDT) From: Christoffer Aasted Date: Thu, 02 Jun 2016 16:40:00 -0000 Message-ID: Subject: Windows shortcut "bash -c" the only way? Naturally it ignores profile and hence locale To: cygwin@cygwin.com Content-Type: text/plain; charset=UTF-8 X-SW-Source: 2016-06/txt/msg00025.txt.bz2 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@my.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@my.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