Gentoo Archives: gentoo-user

From: gottlieb@×××.edu
To: gentoo-user@l.g.o
Subject: [gentoo-user] trouble overriding a command name
Date: Thu, 28 Aug 2014 15:42:51
Message-Id: 87a96o4o4d.fsf@nyu.edu
1 I know this is trivial and apologize in advance for what must be a simple
2 (non-gentoo) error on my part.
3
4 In /home/gottlieb/bin/dia I have the following
5 #!/bin/bash
6 /usr/bin/dia --integrated
7
8 ls -l /home/gottlieb/bin/dia gives
9 -rwxr-xr-x 1 gottlieb gottlieb 38 Aug 28 11:28 /home/gottlieb/bin/dia
10
11 echo $PATH gives
12 /home/gottlieb/bin/:/usr/local/bin:/usr/bin:/bin:/opt/bin:/usr/x86_64-pc-linux-gnu/gcc-bin/4.8.2:/usr/games/bin
13
14 which dia gives
15 /home/gottlieb/bin/dia
16
17 `which dia`
18 correctly starts dia in "integrated" (one window) mode
19
20 /home/gottlieb/bin/dia
21 correctly starts in integrated mode
22
23 /usr/bin/dia
24 correctly starts dia in the default (two window) mode
25
26 BUT plain
27 dia
28 incorrectly starts dia in the default mode.
29
30 What am I missing?
31
32 thanks,
33 allan

Replies

Subject Author
Re: [gentoo-user] trouble overriding a command name Kerin Millar <kerframil@×××××××××××.uk>
Re: [gentoo-user] trouble overriding a command name "Canek Peláez Valdés" <caneko@×××××.com>