On 01/13/2016 06:23 PM, KO Myung-Hun wrote:
+      *) # SRC is relative to the directory of DEST.
+        cp_src="`echo "$2" | sed -e 's,\(^.*\)/[^/]*$,\1,'`/$1" ;;

Can we use parameter expansion instead?  Something like this, say:

cp_src=${2%/*}/$1

Reply via email to