bug-global
[Top][All Lists]
Advanced

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

globash bug in cd() function


From: Roberto Martelloni
Subject: globash bug in cd() function
Date: Mon, 10 Mar 2014 16:49:31 +0000

Hi, 

on Ubuntu 12.04 LTS I've found a simple bug in the cd() command.
global version 5.7.1-2 Architecture: amd64

That part of the 'code':

cd() 
{
    builtin cd $*
    __gtags_prompt
}

Need to be changed in :
cd() {
    builtin cd "$*"
    __gtags_prompt
}

Otherwise if you use globash and you have a directory with space in it you are not able to cd in it.

Example: 
$ mkdir "directory with space"
$ globash
$ cd "directory with space" 

Without the fix, you can't change directory. 

Many thanks,
R.





--
Roberto Martelloni
boos @ http://boos.core-dumped.info



reply via email to

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