Skip to content

Cannot use in fish shell #92

@furudean

Description

@furudean

On a new setup, I'm aliasing the script as of #71, however there appears to be some kind of syntax that breaks in fish.

$ ~ bass "alias awsume=\"source /usr/local/bin/awsume\""
$ ~ awsume profile
/usr/local/bin/awsume (line 5): Expected a string, but instead found a redirection
read AWSUME_FLAG AWSUME_1 AWSUME_2 AWSUME_3 AWSUME_4 AWSUME_5 AWSUME_6 <<< $(awsumepy "$@")
                                                                        ^
from sourcing file /usr/local/bin/awsume
	called on line 1 of file -
in function 'awsume' with arguments 'profile'
source: Error while reading file '/usr/local/bin/awsume'

I'm not too savvy on why this would happen, it almost seems like the script is interpreted in fish instead of bash? If so then maybe using bass to expand the alias isn't the right approach when using fish.

By the way, I tried to do bass source awsume but I can't get it working now.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions