Re: why is 'direxpand' converting relative paths to absolute?

2015-08-18 Thread Linda Walsh



Clark Wang wrote:



I had the same problem months ago. See Chet's answer: 
http://lists.gnu.org/archive/html/bug-bash/2014-03/msg00069.html

===
Yep though I'm not sure about the reasoning in providing
different behaviors based on default-dir-expansion ==> convert
all relative paths to absolute.

Thanks for the explanation though..

linda



Re: why is 'direxpand' converting relative paths to absolute?

2015-08-16 Thread Clark Wang
On Mon, Aug 17, 2015 at 5:54 AM, Linda Walsh  wrote:

> From the manpage I wouldn't have guess it changed
> paths to absolute -- but would expand variables and wildcards
> in the path.
>
> It doesn't seem to make alot of sense when there are other
> ways to go from rel->abs, but not so many that just expand
> vars or aliases on a dir.
> Does anyone know why path conversion was built into it?
>

I had the same problem months ago. See Chet's answer:
http://lists.gnu.org/archive/html/bug-bash/2014-03/msg00069.html

-clark

>
>
>
> Linda Walsh wrote:
>
>>
>>
>> Andreas Schwab wrote:
>>
>>> Linda Walsh  writes:
>>>
>>> in bash 4.3.39,
 if I type a command, (like "."(source)) and a relative path
 like : ../conf,
 it expands the relative pathname to absolute pathnames.

>>>
>>> Worksforme.  Make sure to run complete -r first.
>>>
>> ---
>> You didn't say what version of bash you were using... but
>> that may not be relative:
>>
>> It seems to be "direxpand" -- do you have it on or off.
>>
>> It is supposed to perform word expansion.  It doesn't
>> say it will convert relative paths to absolute.
>>
>> Has it always been that way? (I thought direxpand expanded
>> variables in a path?)
>>
>>
>>
>


why is 'direxpand' converting relative paths to absolute?

2015-08-16 Thread Linda Walsh

From the manpage I wouldn't have guess it changed

paths to absolute -- but would expand variables and wildcards
in the path.

It doesn't seem to make alot of sense when there are other
ways to go from rel->abs, but not so many that just expand
vars or aliases on a dir.  


Does anyone know why path conversion was built into it?



Linda Walsh wrote:



Andreas Schwab wrote:

Linda Walsh  writes:


in bash 4.3.39,
if I type a command, (like "."(source)) and a relative path
like : ../conf,
it expands the relative pathname to absolute pathnames.


Worksforme.  Make sure to run complete -r first.

---
You didn't say what version of bash you were using... but
that may not be relative:

It seems to be "direxpand" -- do you have it on or off.

It is supposed to perform word expansion.  It doesn't
say it will convert relative paths to absolute.

Has it always been that way? (I thought direxpand expanded
variables in a path?)