-
Notifications
You must be signed in to change notification settings - Fork 6
Open
Description
Hi, thanks for your work on this project!
One potential issue I noticed: Fish complains about areturn
from non-function in a translated file containing environment variables that was intended to be sourced by Bash. In Bash return
is used for returning from functions and from files being source
d, but in Fish, exit
is used. We can't change from return
to exit
in the sourced Bash file because it exits the shell that's sourcing, unlike fish
.
Since source
statements are translated by inserting calls to babelfish
, maybe a -source
option could be introduced indicating the Bash input should have top-level return
s converted to exit
s? Then source
statements could be translated by inserting calls to babelfish -source
?
What do you think? Thanks!
Neved4 and u0a316
Metadata
Metadata
Assignees
Labels
No labels