Tiny Core Base > Final Releases

Tiny Core v11.1

<< < (3/5) > >>

aus9:
I have some strangeness with my dot local bin. I hopefully set up a test others could duplicate?
On  64 bit


--- Code: ---echo $PATH
/home/tc/.local/bin:/usr/local/sbin:/usr/local/bin:/apps/bin:/usr/sbin:/usr/bin:/sbin:/bin:/etc/sysconfig/tcedir/ondemand

tc@box:~$ ls -al $HOME/.local/bin/test
-rwxr-xr-x    1 tc       staff           25 Apr 16 11:48 /home/tc/.local/bin/test

tc@box:~$ .local/bin/test
line 1

tc@box:~$ test

tc@box:~$ cat $HOME/.local/bin/test
#!/bin/sh
echo 'line 1'

tc@box:~$
--- End code ---

I was expecting "test" to work at the command line without the full pathway?

any clues?

Rich:
Hi aus9

--- Quote from: aus9 on April 16, 2020, 07:57:58 AM --- ... any clues?
--- End quote ---
Yes. Since no error message was displayed, there's another  test  program being found. You have  coreutils.tcz  installed and
are executing  /usr/local/bin/test.

andyj:
There is also a test in busybox:


--- Code: ---~$ ls -al $(which test)
lrwxrwxrwx    1 root     root            17 Jan 20  2019 /usr/bin/test -> ../../bin/busybox

--- End code ---

Rich:
Hi andyj

--- Quote from: andyj on April 16, 2020, 10:04:39 AM ---There is also a test in busybox:
--- End quote ---
Did not realize that.

In that case, I have  coreutils.tcz  installed ;D:

--- Code: ---tc@E310:~$ ls -l `which test`
lrwxrwxrwx 1 root root 40 Apr  2 17:03 /usr/local/bin/test -> /tmp/tcloop/coreutils/usr/local/bin/test
tc@E310:~$
--- End code ---

curaga:
It's a shell builtin. Those take predecence over PATH apps.

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version