Open bentitmus opened 3 years ago
I was able to fix this with a simple change in the main python file to replace $*
with $argv
in the copied alias commands, although I assume this is fragile, so do so at your own risk.
You can add this line:
v = v.replace("$*", "$argv")
to the __bass.py
file just before the line with alias_lines.append("alias " + ...
(118 for me)
If you installed with oh-my-fish, it should be at ~/.local/share/omf/pkg/bass/functions/__bass.py
ATing the maintainer: @edc, not sure if you would want to merge this change or not, maybe behind a flag. I'll leave that to you.
For aliases with
$*
in them, bash will accept the alias.fish
complains because these aren't valid infish
.bass
should convert these to an acceptable form forfish
. Test case:I believe
bash
is just silently dropping the$*
, although I don't have a lot of experience ofbash
.Unfortunately this is in some scripts that I can't change, otherwise I'd just alter the original bash script.