#1 03 Jan 2020 14:19

slycordinator
Member
Registered: 03 Jan 2020
Posts: 3

Error in linux/bash "type" Man Page

At this site's bash "type Man Page" (I can't post links, but it's at bash/type.html)
It says:

The return status is zero if any of the names are found, non-zero otherwise.

type actually gives an exit code of 1 (well... guaranteed non-zero) whenever any of the names aren't found.

$ type ls non_existent_script
ls is /bin/ls
-bash: type: non_existent_script: not found
$ echo $?
1

And from bash's own "manpages"...

help -m type

Exit Status:
Returns success if all of the NAMEs are found; fails if any are not found.

Offline

#2 03 Jan 2020 19:26

Simon Sheppard
Super Administrator
Registered: 27 Aug 2005
Posts: 1,083
Website

Re: Error in linux/bash "type" Man Page

fixed now, thanks for the heads up

Offline

#3 05 Jan 2020 14:03

slycordinator
Member
Registered: 03 Jan 2020
Posts: 3

Re: Error in linux/bash "type" Man Page

Simon Sheppard wrote:

fixed now, thanks for the heads up

The webpage in question still shows exactly as before, so it seems it's not been fixed.

https://ss64.com/bash/type.html

Offline

#4 05 Jan 2020 14:37

Simon Sheppard
Super Administrator
Registered: 27 Aug 2005
Posts: 1,083
Website

Re: Error in linux/bash "type" Man Page

You may need to hard refresh the page, some web browsers only check for a fresh version every few days.

Offline

#5 05 Jan 2020 15:47

slycordinator
Member
Registered: 03 Jan 2020
Posts: 3

Re: Error in linux/bash "type" Man Page

Simon Sheppard wrote:

You may need to hard refresh the page, some web browsers only check for a fresh version every few days.

My bad. You were right about that.

Offline

Board footer

Powered by FluxBB