cdargs browser doesn't change directory

Bug #357100 reported by Josef Assad
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
cdargs (Ubuntu)
Invalid
Undecided
Unassigned

Bug Description

Binary package hint: cdargs

Running the command cdargs displays the browser where one is expected to highlight an entry, hit the "Enter" key, and the expected result is changing to the directory represented by that entry in the cdargs browser.

What actually happens deviates slightly from this. The entry is highlighted, I press "Enter", the cdargs browser closes, and I am dropped to the same location I was before and not the location I highlighted in the cdargs browser. The directory is not changed.

Further, the commands "cv" and "ca" and "cpb" are not present. http://debaday.debian.net/2009/04/05/cdargs-a-browser-for-cd/ seems to indicate they should be present, at any rate under debian itself.

Revision history for this message
Amr Mostafa (amr-mostafa) wrote :

I can confirm this.

ca, cv and cpb are not present. I've tried to add an entry using the less convenient -a argument, after I did so I executed cvargs, highlighted the entry and pressed Enter, cdargs quit and I'm at the same cwd as I was before.

Changed in cdargs (Ubuntu):
status: New → Confirmed
Revision history for this message
François Marier (fmarier) wrote :

Which version(s) of Ubuntu are you two running?

Cheers,
Francois (Debian maintainer of cdargs)

Revision history for this message
Amr Mostafa (amr-mostafa) wrote :

I'm running Ubuntu 8.10

<excerpt from apt-cache show cdargs>
Filename: pool/universe/c/cdargs/cdargs_1.35-3_i386.deb
MD5sum: 350ebfe0b6124f044397c03581d7dc65
Version: 1.35-3

<excerpt from apt-cache policy cdargs>
Installed: 1.35-3

Revision history for this message
François Marier (fmarier) wrote :

Another thing to check is to make sure that you have put this in your ~/.bashrc:

  source /usr/share/doc/cdargs/examples/cdargs-bash.sh

This is how you can enable the "cbd" and "cv" commands.

Francois

Revision history for this message
Amr Mostafa (amr-mostafa) wrote :

This indeed fixes the issue of ca, cbc and cv. But cdargs itself still doesn't work as described above.

Btw, are there any problems in having cdargs-bash.sh bundled by default? i.e. in /etc/profile.d/? I believe that would be a sensible default.

Thanks

Revision history for this message
François Marier (fmarier) wrote :

As comment #4 points out in the debaday article, cdargs isn't the command that you use to change directories. The article was wrong initially...

About dropping cdargs-bash.sh in /etc/profile.d/, I'm a little concerned about what that might do to tcsh/csh/other users.

Francois

Revision history for this message
Amr Mostafa (amr-mostafa) wrote :

Oh right, cv works indeed.

Regarding /etc/profile.d/ we could check for bash at the beginning of the script, but actually there might be other related problems to doing this like collision with existing packages (radiance package provides 'cv' as well).

Changed in cdargs (Ubuntu):
status: Confirmed → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.