I'd like to create a simple script, something like that:
lftp -c 'open -e "put $1" firstname.lastname@example.org:/data/notes/'
But lftp doesn't see $1 as a variable and treats it literally:
put: /home/xtd8865/notes/autoup/$1: No such file or directory
If I replace 'put $1' with a file name in this directory, everything works.