bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH v7 11/11] gnulib-tool: fall back into copy if symbolic link i


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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]