Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
bad math expression: illegal character: "
- X-seq: zsh-workers 45988
- From: Artur Renault <Artur.Renault@xxxxxxxxxxxxx>
- To: "zsh-workers@xxxxxxx" <zsh-workers@xxxxxxx>
- Subject: bad math expression: illegal character: "
- Date: Fri, 5 Jun 2020 18:18:23 +0000
- Accept-language: en-US
- Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=microsoft.com; dmarc=pass action=none header.from=microsoft.com; dkim=pass header.d=microsoft.com; arc=none
- Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=JCELdjrVsUmyn6p/7AYSsvQW5IRyiX+UPFmDNvZl8ls=; b=gnD4UjMYTcWvAvY+8DUt4Cqe8fNHMl9wcwWAMi+bnxLFUjECQISnYwT34oO+9YNbfynWbkN0wMAFwEqffjx96XyEn8GMI6CnesH3f+Pvtq+RDyirz1KABs3bgi6WKN+amT9V0xX7sOmYgeK47U/GW1SWqPz4iySOnrRD3cPa5qfQxmFE1GyChNIU8DxXLW8F44vGGrtX1IPddTM2Fbh7OPN2Ag4yrmbRRQvR+0dM923LPT9INWBfRDGaFjVv5NjF2yCO5wkZGl9c1VixOJ5ebdUYcrnC/iPGHiHXTMV+xMjvkTqaN9NdIK9I06Q4SwDB81ln8fk6Mr+lVLe1NsYfYw==
- Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Tky1XQaqJJBEoPwkFNqjJOLqCgLiSTOltOkgFDCFtYKxT22qS6V8hZhRpcPy8fjpIHLXKWgsB8dCtlTwybgCYeRepeVdhRSxMlkGDEh3dCW7Z3b5uGHn1l8kDLtyCDGmma6fKEZ2LPqL3KHmOL1ZeCmgqIKJP1KAkBVDTVOHzgaq8TSvQKfNmtXU+Lme2UZZ7DoR2NcSrt57c2o+U1yVGaY3+zNFHHRSnwyiIivIDmvpvp6Use2k4R0WDycUv/+he+JDo39RZjlGRv3AhwCF/rHfPlpxTNkSeIzggixy8xOMnRcCuhUtLnRgWV2HwQstTKa67J8V3W70sUudisHlyQ==
- Authentication-results: zsh.org; dkim=none (message not signed) header.d=none;zsh.org; dmarc=none action=none header.from=microsoft.com;
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- List-unsubscribe: <mailto:zsh-workers-unsubscribe@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
- Msip_labels: MSIP_Label_f42aa342-8706-4288-bd11-ebb85995028c_Enabled=True;MSIP_Label_f42aa342-8706-4288-bd11-ebb85995028c_SiteId=72f988bf-86f1-41af-91ab-2d7cd011db47;MSIP_Label_f42aa342-8706-4288-bd11-ebb85995028c_SetDate=2020-06-05T18:13:07.3247490Z;MSIP_Label_f42aa342-8706-4288-bd11-ebb85995028c_ContentBits=0;MSIP_Label_f42aa342-8706-4288-bd11-ebb85995028c_Method=Privileged
- Thread-index: AQHWO2T2NEiOlBpu9keNnh9Lm8IWKg==
- Thread-topic: bad math expression: illegal character: "
Hello zsh maintainers,
I ran into an issue with running a sourced script on zsh.
It’s a simple repro. Take the script repro.sh:
while (( "$#" )); do
echo $1
shift
done
Running this with source gives me the following error:
[~] source repro.sh 18:15:53
repro.sh:1: bad math expression: illegal character: "
The same script works fine on bash:
[~] bash -c "source repro.sh hello" 18:17:23
hello
Anyone know what the issue could be here?
This is on Ubuntu, with oh-my-zsh on top.
Thanks,
Artur
Messages sorted by:
Reverse Date,
Date,
Thread,
Author