Skip to content

Alias with $* does not get correctly converted #91

Description

@bentitmus

For aliases with $* in them, bash will accept the alias. fish complains because these aren't valid in fish. bass should convert these to an acceptable form for fish. Test case:

test.sh:
alias testing='ls $*' -l
$ source test.sh
$ testing .. <Ctrl-Alt-e>
$ ls  -l ..
> bass -d source test.sh
alias "testing"='ls $* -l'- (line 1): $* is not supported. In fish, please use $argv.
function testing --wraps 'ls $* -l' --description 'alias testing=ls $* -l';  ls $* -l $argv; end
...

I believe bash is just silently dropping the $*, although I don't have a lot of experience of bash.

Unfortunately this is in some scripts that I can't change, otherwise I'd just alter the original bash script.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions