bug-bash
[Top][All Lists]
Advanced

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

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


From: Clark Wang
Subject: Re: why is 'direxpand' converting relative paths to absolute?
Date: Mon, 17 Aug 2015 09:46:30 +0800

On Mon, Aug 17, 2015 at 5:54 AM, Linda Walsh <bash@tlinx.org> 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 <bash@tlinx.org> writes:

in bash 4.3.39,
if I type a command, (like "."(source)) and a relative path
like : ../conf<complete>,
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?)





reply via email to

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