From cc9020e51ddecaabcc85a2d365742d89b55ea22b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20Revol?= Date: Tue, 20 May 2008 00:42:32 +0000 Subject: [PATCH] Fix completion when DEVROOT contains more than 1 folder, like on linux accounts on ~/devel. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@25570 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- 3rdparty/mmu_man/scripts/dev-perso | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/3rdparty/mmu_man/scripts/dev-perso b/3rdparty/mmu_man/scripts/dev-perso index f9dd971ea2..0d6f8a6ce8 100755 --- a/3rdparty/mmu_man/scripts/dev-perso +++ b/3rdparty/mmu_man/scripts/dev-perso @@ -67,7 +67,7 @@ export PASSWDS function dev() { if [ $# -lt 1 ]; then - ls $DEVROOT/*/.profile | cut -d / -f 3 + ls $DEVROOT/*/.profile | sed 's,.*/\([^/]*\)/.profile,\1,' return 0 fi if [ "x$1" = "x--help" ]; then