www.delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2025/12/14/04:20:54

DMARC-Filter: OpenDMARC Filter v1.4.2 delorie.com 5BE9KrvD1107633
Authentication-Results: delorie.com; dmarc=pass (p=none dis=none) header.from=cygwin.com
Authentication-Results: delorie.com; spf=pass smtp.mailfrom=cygwin.com
DKIM-Filter: OpenDKIM Filter v2.11.0 delorie.com 5BE9KrvD1107633
Authentication-Results: delorie.com;
dkim=pass (1024-bit key, unprotected) header.d=cygwin.com header.i=@cygwin.com header.a=rsa-sha256 header.s=default header.b=IgWZUru2
X-Recipient: archive-cygwin AT delorie DOT com
DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org D3C864BA2E2B
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com;
s=default; t=1765704052;
bh=r/64btMcdjQnZzottzEpJqtZpC/v9KR21dWd2e9x4NI=;
h=Date:To:Subject:List-Id:List-Unsubscribe:List-Archive:List-Post:
List-Help:List-Subscribe:From:Reply-To:Cc:From;
b=IgWZUru2xbPLmnoj8dgnqnvF0BsWBjn3ncZrr/6PKts4uvN8VLTdsvj/JwWE8cjxo
xbAk2m0cwGBo04WEpX0ihngMEwINYriFjtEnGK0rpV/BvrifEB6Omwhxtj1bw1tt2I
4DaUjFgw8Vm39C8ZE773a7caWaG5fDo7AlXPIOoI=
X-Original-To: cygwin AT cygwin DOT com
Delivered-To: cygwin AT cygwin DOT com
DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org F01754BA2E07
ARC-Filter: OpenARC Filter v1.0.0 sourceware.org F01754BA2E07
ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1765704004; cv=none;
b=H5HtqldMArwxkkewJBldwhlWtbRrbiK7N1VfH6xvjRmuKO1ndfE9lzMwqT0xam3yLCUjlaidtMw1+iVRdd4Fo9Cwu7flIn77jFYQFadx3LJ7OZ6T0DebELk1ElnTBvisgiXfyf8FnPpJ/a6OiFV3zA7OyaHzEokCKJOF8SHdCJ4=
ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key;
t=1765704004; c=relaxed/simple;
bh=4e1hMXKfuvlwtj1oQEkcUjEL+Bgu2TMdbKzGAWbLmSQ=;
h=DKIM-Signature:Date:From:Message-ID:To:Subject:MIME-Version;
b=oXia6JRjhs7IJmVDKpqIl/GvmlFLCYw7nHQBAgfH81n62eosI7vvIk61jlTsw+qWumOWRq4njBzLIbru9nRv+gXpA1HWymUrlzh+tPvYAt+cZZI1OvehDoIrYEhFl5wVfu6ANHgIGZkBy6No7OlgwZMPloJYHUnD/mwpjPYAv3E=
ARC-Authentication-Results: i=1; server2.sourceware.org
DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org F01754BA2E07
X-Yandex-Fwd: 1
Date: Sun, 14 Dec 2025 12:15:09 +0300
X-Mailer: The Bat! (v11.4.3) Home
Message-ID: <5010206948.20251214121509@yandex.ru>
To: All <cygwin AT cygwin DOT com>
Subject: Something wrong with cygstart
MIME-Version: 1.0
X-BeenThere: cygwin AT cygwin DOT com
X-Mailman-Version: 2.1.30
List-Id: General Cygwin discussions and problem reports <cygwin.cygwin.com>
List-Archive: <https://cygwin.com/pipermail/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-request AT cygwin DOT com?subject=help>
List-Subscribe: <https://cygwin.com/mailman/listinfo/cygwin>,
<mailto:cygwin-request AT cygwin DOT com?subject=subscribe>
From: Andrey Repin via Cygwin <cygwin AT cygwin DOT com>
Reply-To: cygwin AT cygwin DOT com
Cc: Andrey Repin <anrdaemon AT yandex DOT ru>
Sender: "Cygwin" <cygwin-bounces~archive-cygwin=delorie DOT com AT cygwin DOT com>

Greetings, All!

I'm using a wrapper script to comfortably start VS Code from file manager.

The last line of it is

cygstart --hide -- "/proc/cygdrive/c/Program Files/Microsoft VS Code/bin/code.cmd" "$(cygpath -alw "$_arg")"

It works well up to the point where there are no spaces in the $_arg. But on
the first seen space it break the arguments list into pieces.
I have to double-quote the argument to maintain the consistency, like

cygstart --hide -- "/proc/cygdrive/c/Program Files/Microsoft VS Code/bin/code.cmd" "\"$(cygpath -alw "$_arg")\""

but that's a questionable solution at best.

I'm unable to track the origin of such behavior, so I need an advice.


-- 
With best regards,
Andrey Repin
Sunday, December 14, 2025 12:07:31

Sorry for my terrible english...


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

- Raw text -


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