I want to set an alias to start nedit together with command line option -noautosave (due to text files up to 500MB). What seemed to be easy:alias nn=nedit -noautosave $1 &just raises some error Permission denied of a different file and another error about unexpected EOF while looking for matching ' and unexpected end of file.One solution I found after a Google Search would be to check the quotes, but I can't see any possible errors with them.I also tried declaring a function:function nn () { nedit -noautosave $1 &}which also failed with same errors.
Bash aliases/functions and command line options
bash;command line;alias;bashrc
If you only want to run nedit with -noautosave when one of the files to be opened is larger than a given size, try this (I am using 100M but you can set your own size limit):function nn() {     big=0;    let big+=$(find $@ -size +100M|wc -l)    if [ $big -gt 0 ]; then     nedit -noautosave -- $@ &    else     nedit -- $@ &    fi}From man nedit:   --  Treats all subsequent arguments as file names,       even if they start with a dash.  This is so NEdit       can access files that begin with the dash       character.