This is the old XigmaNAS forum in read only mode,
it will taken offline by the end of march 2021!



I like to aks Users and Admins to rewrite/take over important post from here into the new fresh main forum!
Its not possible for us to export from here and import it to the main forum!

binary "which"?

Post/Debate your Suggestions & Requests of XigmaNAS here. This ONLY pertains to XigmaNAS.
Forum rules
Set-Up GuideFAQsForum Rules
Post Reply
stanv
NewUser
NewUser
Posts: 4
Joined: 16 Feb 2014 21:52
Status: Offline

binary "which"?

Post by stanv »

I'd really like a binary "which" to be able to easily run zxfer. /bin/sh has no built in "which" for the sctipt to use.

Thanks,

Stan

nas4free: ~ # ls -al /usr/bin/which
ls: /usr/bin/which: No such file or directory
nas4free: ~ #

User avatar
alexey123
Moderator
Moderator
Posts: 1469
Joined: 19 Aug 2012 08:22
Location: Israel, Karmiel
Contact:
Status: Offline

Re: binary "which"?

Post by alexey123 »

try

Code: Select all

which which
As for me which is shell built-in command
Home12.1.0.4 - Ingva (revision 7091)/ x64-embedded on AMD A8-7600 Radeon R7 A88XM-PLUS/ 16G RAM / UPS Ippon Back Power Pro 600
Lab 12.1.0.4 - Ingva (revision 7091) /x64-embedded on Intel(R) Core(TM) i3-3220 CPU @ 3.30GHz / H61M-DS2 / 4G RAM / UPS Ippon Back Power Pro 600

stanv
NewUser
NewUser
Posts: 4
Joined: 16 Feb 2014 21:52
Status: Offline

Re: binary "which"?

Post by stanv »

nas4free: ~ # sh
# which which
no such file or directory
#

xuesheng
Starter
Starter
Posts: 57
Joined: 23 Jun 2012 10:56
Status: Offline

Re: binary "which"?

Post by xuesheng »

When I login as root using SSH the /bin/tcsh shell is used and that has 'which' as a built-in command:

Code: Select all

nas4free:~# echo $shell
/bin/tcsh
nas4free:~# which which
which: shell built-in command.
nas4free:~#

svily0
Starter
Starter
Posts: 29
Joined: 03 Apr 2013 12:05
Status: Offline

Re: binary "which"?

Post by svily0 »

And what shall bash users do?
While at it, why not add in file, whoami and possibly other useful commands/tools?!
mc would be great to have out of the box, doesn't matter how easy it is to add it later...
links would be nice as well.

It may sound extreme, but I would also love to have man together with the man pages for all the software included in embedded.
20MB wasted perhaps - who cares?

Regards!

Post Reply

Return to “Suggestions & Requests”