I want to add an alias for nedit editor
alias ne='nedit'
or
alias ne='nedit $1'
works fine
but i want to add & at its end:
alias ne='nedit $1 &'
so that if i do
ne filename
It should open filename in nedit and run it in background
but I get an error
filename : command not found
How can I pass an argument and send the process to the background using aliases?
alias, just replaces “ne” with “nedit”, you can't pass arguments to it.$1inalias ne='nedit $1'is just ignored, if you want to keep it in the background, how aboutne filename &? – dessert Aug 18 '17 at 13:47function ne(){ nedit $1 & };. – Ravexina Aug 18 '17 at 13:49aliascan be used with&at the end. – dessert Aug 20 '17 at 05:50