zsh-workers
 help / color / mirror / code / Atom feed
* bad math expression: illegal character: "
@ 2020-06-05 18:18 Artur Renault
  2020-06-05 21:01 ` Lawrence Velázquez
  0 siblings, 1 reply; 9+ messages in thread
From: Artur Renault @ 2020-06-05 18:18 UTC (permalink / raw)
  To: zsh-workers

[-- Attachment #1: Type: text/plain, Size: 690 bytes --]

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

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2020-06-23 23:52 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-06-05 18:18 bad math expression: illegal character: " Artur Renault
2020-06-05 21:01 ` Lawrence Velázquez
2020-06-17 23:21   ` Bart Schaefer
2020-06-18 11:19     ` Mikael Magnusson
2020-06-19  6:38       ` Lawrence Velázquez
2020-06-19 15:35         ` Sebastian Gniazdowski
2020-06-19 15:55         ` Peter Stephenson
2020-06-22 11:11           ` Peter Stephenson
2020-06-23 23:51           ` Bart Schaefer

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).