Skip to content
View in the app

A better way to browse. Learn more.

Unraid

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Basic path question - Preclear

Featured Replies

My system has been getting a some health errors, so I decided to replace a disk.

 

But when I run preclear it says it can't find bash, when I run preclear with the path for bash specified, I get unknown command on line 65, 66, etc. So I assume my paths are screwed up for some reason. What should I check?

 

 

My system has been getting a some health errors, so I decided to replace a disk.

 

But when I run preclear it says it can't find bash, when I run preclear with the path for bash specified, I get unknown command on line 65, 66, etc. So I assume my paths are screwed up for some reason. What should I check?

All your add-ins and plug-ins.  One of them messed with the $PATH variable.

 

If you cannot find the bash shell, lots of things will not work.

 

On my 4.7 server, it is:

PATH=/usr/local/sbin:/usr/sbin:/sbin:./:/usr/local/bin:/usr/bin:/bin

 

On my 5.0rc8a server it is:

PATH=/usr/local/sbin:/usr/sbin:/sbin:./:/usr/local/bin:/usr/bin:/bin:/usr/kerberos/bin:/usr/kerberos/sbin

 

In my personal opinion, both are HORRIBLE from a security standpoint.  /bin, /usr/bin, /usr/sbin, and /sbin and everything else should ALWAYS be before the current directory.  It should be dead last.

 

bash is in /usr/bin/bash and it is linked to /bin/bash

 

Joe L.

  • Author

Thanks I'm still on 4.7, haven't been on the machine for tooo long.

 

PATH looks like /usr/local/sbin:/usr/sbin:/sbin:./:/usr/local/bin:/usr/bin:/bin

 

I also found bash in /usr/bin

 

 

Error from the script looks like:

 

ver="1.13"

+ ver=$'1.13\r'

 

+ $'\r'

: command not foundine 65:

progname=$0

+ progname=$'preclear_disk.sh\r'

options=$*

' options='-A /dev/sdd

 

+ $'\r'

: command not foundine 68:

usage() {

'reclear_disk.sh: line 69: syntax error near unexpected token `{

'reclear_disk.sh: line 69: `usage() {

 

 

Thanks.

 

 

On my 4.7 server, it is:

PATH=/usr/local/sbin:/usr/sbin:/sbin:./:/usr/local/bin:/usr/bin:/bin

In my personal opinion, both are HORRIBLE from a security standpoint.  /bin, /usr/bin, /usr/sbin, and /sbin and everything else should ALWAYS be before the current directory.  It should be dead last.

 

bash is in /usr/bin/bash and it is linked to /bin/bash

 

Joe L.

  • Author

Something funky happened when copying the file from Windows 7. Copied it again and it's clearing now.

 

Thanks again.

 

 

Archived

This topic is now archived and is closed to further replies.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.