On Thu, Sep 19, 2013 at 3:23 PM, David Griffiths
wrote:
>> But why are you even using cygpath to try and determine the containing
>> directory? 'dirname' does that task, in a much more portable manner,
>> and without having to worry about whether 'file/..' can be abused in
>> spite of POSIX seman
> But why are you even using cygpath to try and determine the containing
> directory? 'dirname' does that task, in a much more portable manner,
> and without having to worry about whether 'file/..' can be abused in
> spite of POSIX semantics
To given even more context, this is how it was used:
u
On 09/18/2013 04:34 PM, David Griffiths wrote:
Hi, the script is attempting to determine the directory in which it
exists, so CURRENT_DIR is a bit misleading. This is so that it can
access other files in the same package relative to it (quite a common
technique I think).
Might be helpful to have
On 09/18/2013 08:34 AM, David Griffiths wrote:
> Hi, the script is attempting to determine the directory in which it
> exists, so CURRENT_DIR is a bit misleading. This is so that it can
> access other files in the same package relative to it (quite a common
> technique I think).
>
> Might be helpf
Hi, the script is attempting to determine the directory in which it
exists, so CURRENT_DIR is a bit misleading. This is so that it can
access other files in the same package relative to it (quite a common
technique I think).
Might be helpful to have some examples:
/home/dgriff> mkdir test
/home/d
Greetings, Robert Klemme!
>>> Yes, that's exactly right, assuming that 'boo' doesn't exist.
>>
>> Hi, it happens even if boo does exist. To put it in context, the
>> script in question was attempting to determine the current directory:
>>
>> CURRENT_DIR=$(cygpath -ma "${0}"/../)
> I am confused:
On Mon, Sep 16, 2013 at 11:56 AM, David Griffiths
wrote:
>> Yes, that's exactly right, assuming that 'boo' doesn't exist.
>
> Hi, it happens even if boo does exist. To put it in context, the
> script in question was attempting to determine the current directory:
>
> CURRENT_DIR=$(cygpath -ma "${0}
Greetings, David Griffiths!
>> Yes, that's exactly right, assuming that 'boo' doesn't exist.
> Hi, it happens even if boo does exist. To put it in context, the
> script in question was attempting to determine the current directory:
> CURRENT_DIR=$(cygpath -ma "${0}"/../)
> (I didn't write this
On Mon, Sep 16, 2013 at 10:56:37AM +0100, David Griffiths wrote:
>> Yes, that's exactly right, assuming that 'boo' doesn't exist.
>
>Hi, it happens even if boo does exist.
Not for me.
% mkdir /boo
norton[~]
$ ls /boo/..
bin cygwin dev localhome proc usr
boo
On Mon, Sep 16, 2013 at 5:56 AM, David Griffiths <> wrote:
>> Yes, that's exactly right, assuming that 'boo' doesn't exist.
>
> Hi, it happens even if boo does exist. To put it in context, the
> script in question was attempting to determine the current directory:
>
> CURRENT_DIR=$(cygpath -ma "${0
> Yes, that's exactly right, assuming that 'boo' doesn't exist.
Hi, it happens even if boo does exist. To put it in context, the
script in question was attempting to determine the current directory:
CURRENT_DIR=$(cygpath -ma "${0}"/../)
(I didn't write this script but I assume they did this for
On Fri, Sep 13, 2013 at 01:17:05PM -0400, Robert Pendell wrote:
>On Fri, Sep 13, 2013 at 11:55 AM, David Griffiths <> wrote:
>> I reinstalled cygwin after a disk failure recently and one of my
>> scripts stopped working. The problem can be easily reproduced by
>> entering:
>>
>> $ cygpath -m bo
On Fri, Sep 13, 2013 at 11:55 AM, David Griffiths <> wrote:
> I reinstalled cygwin after a disk failure recently and one of my
> scripts stopped working. The problem can be easily reproduced by
> entering:
>
> $ cygpath -m boo/..
> cygpath: error converting "boo/.." - No such file or direct
I reinstalled cygwin after a disk failure recently and one of my
scripts stopped working. The problem can be easily reproduced by
entering:
$ cygpath -m boo/..
cygpath: error converting "boo/.." - No such file or directory
this is with version 1.7.24(0.269/5/3). On another machine with 1.
14 matches
Mail list logo