Shell (Bash/Bourne/Korn) Alias Taking Multiple Arguments

This page answers questions like these:

Shell Alias Taking Multiple Arguments:

To make an alias that takes multiple arguments you actually need to make a function, not an alias:

FUNCTION() { cp "$1" "$2" }
Related Links:
Shell String Containing Spaces is Not Splitting
Embed Quotes in a Shell Command or String

Home  >  Linux / Unix  >  Shell (Bash/Bourne/Korn) Alias Taking Multiple Arguments

Tags: bash alias taking multiple arguments, ksh alias taking multiple arguments, linux, unix

Src: shell-alias-with-multiple-args.txt
Dst: Linux-Unix/shell-alias-taking-multiple-arguments.htm
Ads: 2