[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Quilt-dev] [PATCH] Add a rename command
From: |
Jean Delvare |
Subject: |
Re: [Quilt-dev] [PATCH] Add a rename command |
Date: |
Thu, 9 Jun 2005 14:21:29 +0200 (CEST) |
Hi Andreas, all,
[Jean Delvare]
> rename_file()
> {
> local old=$1
> local new=$2
> local newdir=$(dirname "$new")
>
> [ -d "$dirname" ] || mkdir -p "$dirname" || return 1
Note that I made a typo here, $dirname should obviously be $newdir.
That's what happens when you type shell code directly in a mail without
any testing. Sorry.
[Andreas Gruenbacher]
> ... even more so. I'll apply that.
OK, thanks :)
--
Jean Delvare
Re: [Quilt-dev] [PATCH] Add a rename command, Peter Williams, 2005/06/08