From 17be182200cdc454f411eba49a44c8b04b29e445 Mon Sep 17 00:00:00 2001 From: 10sr <8slashes+git@gmail.com> Date: Mon, 10 Sep 2012 14:08:58 +0900 Subject: [PATCH] realpath --no-symlinks dont work on ubuntu --- bashrc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bashrc b/bashrc index f81e2f9..5f84b37 100755 --- a/bashrc +++ b/bashrc @@ -234,7 +234,7 @@ cd(){ __dirs_rm_dup(){ for d in "$@" do - local next="$(realpath --no-symlinks "$d")" + local next="$(realpath --strip "$d")" for l in $(\dirs -v -l | cut -d " " -f 2- | \grep -x " *[0-9]\+ \+${next}" | \grep -o "^ *[0-9]\+ " | tac) do