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