Re: problem with automatic home directory expansion

  • From: <tpgww@xxxxxxxxxxx>
  • To: emelfm2@xxxxxxxxxxxxx
  • Date: Tue, 28 Aug 2007 00:34:24 +1000

On Mon, 27 Aug 2007 10:53:07 +0200
Tobias Jakobi <liquid.acid@xxxxxxx> wrote:

> Hi there,
> 
> I'm using emelfm2-0.3.5 and having problem with pathnames containing the
> '~' character.
> I've already filed a bugreport in the gentoo bugzilla:
> http://bugs.gentoo.org/show_bug.cgi?id=190173
> 
> I think it has all important stuff. Maybe you can take a look at it.
> 
> Thanks,
> Tobias

As others have posted, '~' is commonly used as an alias in *NIX commands, and 
it can be at the start of the command itself, or of any command argument. So in 
any emelFM2 command string, a '~' will be replaced by the user's home directory 
path, if the '~' is:
1. preceded by nothing or whitespace, and
2. followed by nothing or whitespace or '/'

On reflection, there should be no replacement if the character is embedded in a 
quoted string (and so I've just updated that), but otherwise, the current 
arrangement is just as it should be, AFAIK.

IMO you're asking for some trouble (or at least, imposing some quoting 
requirements) if you name any directory as in your example.

> What happens when I simply double click is the following thing:
> mpg123 "/home/user/documents /home/user settings/music.mp3"

Same issue, this sort of thing works properly now that quoted tilde's are not 
expanded.

Regards
Tom


-- 
Users can unsubscribe from the list by sending email to 
emelfm2-request@xxxxxxxxxxxxx with 'unsubscribe' in the subject field or by 
logging into the web interface.

Other related posts: