I have a C++ program with a main routine which reads arguments from command line:
int main(int argc, const char *argv[])
In my system I have defined some aliases in my bash environment which abbreviates directory names.
Example:
alias dst='home/username/Documents/test'
alias src='home/username/Download/test'
My program is called "dircopy" and I want to use the following input:
dircopy /home/username/Download/test /home/username/Documents/test
But I want to avoid writing the whole path for destination directory and source directory each time I run the program. Is there a clever way to use the alias definitions in bash when calling my "dircopy"-program ?
(Example: dircopy $src $dst - or something similar...)