-
Notifications
You must be signed in to change notification settings - Fork 131
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Noti doesn't expand alias arguments #11
Comments
Could you post more information about this? I wasn't able to reproduce this. I set this in my
Then I ran I was able to run |
I am not talking about set "noti" as an alias. For example, in osx: alias speak_hello=' say "hello"' noti speak_hello give an error. No detailed information, but the command in alias does not run. |
Wait. I just realized Getting this behavior right seems tricky—and doing it in a way that works across different shells seems even more difficult. Technically, you can get this to work in bash, version 3.2.57, like this.
I'd recommend to avoid doing this though. It seems like most apps can't handle expanding alias arguments. |
Hi, @vyasgiridhar, @chmaynard, and @simioes. I think I might have finally found a solution to this, that's not too crazy. (No regexp.)
Then try running
Can anyone else verify this works? I tried this on macOS Sierra with ZSH. It would be awesome if someone could test on other platforms and shells. ✌️ Thanks!! |
It works on bash in Arch linux. 👍 |
But can you change
to
would directly spawn the alias process. |
Merged the alias change to dev, 1598292. @vyasgiridhar, I liked your change, but I kept it the way I had it because executing the alias in the subshell caused arguments passed to aliases to be escaped.
Maybe we can optimize this later. |
After installed, i tried with some created alias and it fails. If i run the command assigned to the alias it works as expected.
The text was updated successfully, but these errors were encountered: