I need to define an alias that will launch runuser which will, in turn, run a command, and i need this final command to receive the command line arugments passed to the alias. Not clear ? :) An example :alias composer=runuser -l www-data -c 'php -c /usr/local/etc/php/php-composer.ini /usr/local/bin/composer'I now have the composer alias which overrides the composer binary. I can run the following:composer installWell, but the install argument will not be passed to the command php -c /usr/local/etc/php/php-composer.ini /usr/local/bin/composer, i do not even know where it goes.Any chance i can do that with alias only? No shell script? Thank you!This is not a duplicate of In Bash, when to alias, when to script, and when to write a function? because i need to understand how arguments can be passed thru with an alias here, not wheither i need to use other options. But this question is a good place to start indeed.
alias and runuser with arguments
bash;shell;alias