1 |
On 28/08/2014 16:42, gottlieb@×××.edu wrote: |
2 |
> I know this is trivial and apologize in advance for what must be a simple |
3 |
> (non-gentoo) error on my part. |
4 |
> |
5 |
> In /home/gottlieb/bin/dia I have the following |
6 |
> #!/bin/bash |
7 |
> /usr/bin/dia --integrated |
8 |
> |
9 |
> ls -l /home/gottlieb/bin/dia gives |
10 |
> -rwxr-xr-x 1 gottlieb gottlieb 38 Aug 28 11:28 /home/gottlieb/bin/dia |
11 |
> |
12 |
> echo $PATH gives |
13 |
> /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 |
14 |
> |
15 |
> which dia gives |
16 |
> /home/gottlieb/bin/dia |
17 |
> |
18 |
> `which dia` |
19 |
> correctly starts dia in "integrated" (one window) mode |
20 |
> |
21 |
> /home/gottlieb/bin/dia |
22 |
> correctly starts in integrated mode |
23 |
> |
24 |
> /usr/bin/dia |
25 |
> correctly starts dia in the default (two window) mode |
26 |
> |
27 |
> BUT plain |
28 |
> dia |
29 |
> incorrectly starts dia in the default mode. |
30 |
> |
31 |
|
32 |
You might need to run hash -r in your current shell. If that doesn't |
33 |
help then ensure that there is no alias. Incidentally, I would suggest |
34 |
that you write this in your script: |
35 |
|
36 |
exec /usr/bin/dia --integrated |
37 |
|
38 |
Refer to `help exec` for the reasoning. |
39 |
|
40 |
--Kerin |