|
From: | Paul Eggert |
Subject: | Re: [PATCH v7 11/11] gnulib-tool: fall back into copy if symbolic link is not supported |
Date: | Thu, 14 Jan 2016 16:34:56 -0800 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.5.0 |
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
[Prev in Thread] | Current Thread | [Next in Thread] |