Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
sourcing a sh file in zsh
- X-seq: zsh-users 13712
- From: Evert Rol <evert.rol@xxxxxxxxx>
- To: zsh-users@xxxxxxxxxx
- Subject: sourcing a sh file in zsh
- Date: Fri, 16 Jan 2009 14:53:06 +0100
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:from:to :content-type:content-transfer-encoding:mime-version:subject:date :x-mailer; bh=FpJfdXrdOV8uZZ5rF6Tfv7TL3RhmUdbFqzuNgeM1EQw=; b=uoh+/+zuqyOU/m/MUYYSiZqIqYUttcS5lbY+nKEUTuRFKiGFG99PwatV0Y5zjnZfTs cYDfWwatpEsVxqdtvYtdFgJ8E+iwm7OHDOS7YS2a9xChXLbg0LbBrZIkUxW4eTetR/H6 P79C4y7pLqDhSx+GPE7r1om3M2SR//WG+eb18=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:from:to:content-type:content-transfer-encoding :mime-version:subject:date:x-mailer; b=AHBLhzxDn86YYsWBFGlYdOma7cytRTcGsaPvsUpP1kOJSX6FEUO3TwYyHzFlaDIUjE fJQB9OPaIA1Ev8QdnUZA5purGQ7l3IyFTvnmXNFXgPhPps3eWi0E/M3H3FFW8v5RxKmW qfCrU1SdyvAHmI4sOwuwbui1yMRnVFSHAiRQg=
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
Hi,
How do I source a .sh file in zsh? It works fine in bash or sh, but
gives an error when source in zsh.
(The error itself, for example is as follows:
$> source bla.sh
bla.sh:1: bad math expression: operand expected at `'
where that line reads:
[ "$a_root" = "" ] && a_root=/some/dir
Note that it's a lengthly script, and I didn't write it, so I'm not
keen on changing everything to make it zsh compatible.
)
Thanks,
Evert
Messages sorted by:
Reverse Date,
Date,
Thread,
Author