LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 10-02-2021, 06:50 PM   #16
computersavvy
Senior Member
 
Registered: Aug 2016
Posts: 3,345

Rep: Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484

Quote:
Originally Posted by hazel View Post
Are you sure that's Linux and not BSD? I can't get apropos to accept any arguments except a subject keyword.
Apropos has many options. From the man page
Code:
APROPOS(1)                                             Manual pager utils                                             APROPOS(1)

NAME
       apropos - search the manual page names and descriptions

SYNOPSIS
       apropos [-dalv?V] [-e|-w|-r] [-s list] [-m system[,...]] [-M path] [-L locale] [-C file] keyword ...

Last edited by computersavvy; 10-02-2021 at 08:25 PM.
 
Old 10-02-2021, 07:42 PM   #17
enigma9o7
Senior Member
 
Registered: Jul 2018
Location: Silicon Valley
Distribution: Bodhi Linux
Posts: 1,388

Rep: Reputation: 560Reputation: 560Reputation: 560Reputation: 560Reputation: 560Reputation: 560
It annoys me that some programs behave differently or accept different switches depending on if they're running under linux, msdos, macos, or bsd. That's not nice.
 
Old 10-03-2021, 06:22 AM   #18
hazel
LQ Guru
 
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware
Posts: 7,604
Blog Entries: 19

Rep: Reputation: 4458Reputation: 4458Reputation: 4458Reputation: 4458Reputation: 4458Reputation: 4458Reputation: 4458Reputation: 4458Reputation: 4458Reputation: 4458Reputation: 4458
Code:
apropos(1)                       General Commands Manual                       apropos(1)

NAME
       apropos - search the whatis database for strings

SYNOPSIS
       apropos keyword ...
That's from Slackware.
 
Old 10-03-2021, 08:09 AM   #19
onebuck
Moderator
 
Registered: Jan 2005
Location: Central Florida 20 minutes from Disney World
Distribution: SlackwareŽ
Posts: 13,925
Blog Entries: 44

Rep: Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159
Member Response

Hi,

Quote:
Originally Posted by enigma9o7 View Post
It annoys me that some programs behave differently or accept different switches depending on if they're running under linux, msdos, macos, or bsd. That's not nice.
Unique!! I can remember times when some people would damn anyone would even seem like their system was using similar semantics or syntax. More court actions have been initiated because of similarity or theft of intelligence. Early examples would be C/PM and MS DOS along with IBM DOS vs MS DOS. I am sure you will find a bundle of information via DDG search!

I can attest that using many different systems has been beneficial to my career. I did move fluidly when using a new system as long as I researched the command structure. That uniqueness and some similarity helped to remember the commands easily for me.
 
Old 10-03-2021, 08:25 AM   #20
chemfire
Member
 
Registered: Sep 2012
Posts: 424

Rep: Reputation: Disabled
>IBM DOS vs MS DOS

I doubt there were issues with that. Microsoft provided DOS to IBM. IBM DOS vs MSDOS (which was not a retail product until version 5, I think) was literally the same source code. There were compile time options that changed certain behaviors between the IBM version and the "MICROSOFT" version s along with the copyright string. Also so files like IBMIO got renamed. Microsoft provided the exact same source to other OEMs after the first versions where only the IBM PC existed, save for a some hardware specific parts OEMS were expected to implement themselves. Many of the OEMS even enable the IBM options and patched the copyright string because they either preferred the IBM behaviors or wanted to be that much more "IBM PC Compatible"
 
Old 10-03-2021, 08:50 AM   #21
onebuck
Moderator
 
Registered: Jan 2005
Location: Central Florida 20 minutes from Disney World
Distribution: SlackwareŽ
Posts: 13,925
Blog Entries: 44

Rep: Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159
Member Response

Hi,

IBM DOS(PC-DOS) vs MS DOS was due to IBM release of several pages related to the I/O system and other documentation. Along with other company infringement issues. Yes, they collaborated on the original development but in-fighting was abound between the two. Some say that IBM agreed to let MS to develop with guidelines from IBM so no outside claims could be made;
Quote:
From https://en.wikipedia.org/wiki/IBM_PC_DOS
IBM wanted Microsoft to retain ownership of whatever software it developed, and wanted nothing to do with helping Microsoft, other than making suggestions from afar. According to task force member Jack Sams:
The reasons were internal. We had a terrible problem being sued by people claiming we had stolen their stuff. It could be horribly expensive for us to have our programmers look at code that belonged to someone else because they would then come back and say we stole it and made all this money. We had lost a series of suits on this, and so we didn't want to have a product which was clearly someone else's product worked on by IBM people. We went to Microsoft on the proposition that we wanted this to be their product.
I do remember Gary Kildall of Digital Research, Inc C/PM claims against both MS & IBM release for DOS infringement. I believe that was a major reason for IBM's original position with MS to prevent future claims.
Problems between MS & IBM were that IBM did release massive DOS documentation that MS did not wish to be released.
 
Old 10-03-2021, 08:52 AM   #22
elMoco
Member
 
Registered: Jul 2010
Distribution: Slackware
Posts: 45

Rep: Reputation: 11
Quote:
Originally Posted by hazel View Post
Code:
apropos(1)                       General Commands Manual                       apropos(1)

NAME
       apropos - search the whatis database for strings

SYNOPSIS
       apropos keyword ...
That's from Slackware.
'my' Slackware:

Code:
APROPOS(1)                                             Manual pager utils                                             APROPOS(1)

NAME
       apropos - search the manual page names and descriptions

SYNOPSIS
       apropos [-dalv?V] [-e|-w|-r] [-s list] [-m system[,...]] [-M path] [-L locale] [-C file] keyword ...

DESCRIPTION
Code:
# distro
Name: Slackware 15.0 x86_64
Version: 15.0 (stable)
Codename: stable
 
Old 10-03-2021, 09:03 AM   #23
hazel
LQ Guru
 
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware
Posts: 7,604
Blog Entries: 19

Rep: Reputation: 4458Reputation: 4458Reputation: 4458Reputation: 4458Reputation: 4458Reputation: 4458Reputation: 4458Reputation: 4458Reputation: 4458Reputation: 4458Reputation: 4458
Quote:
Originally Posted by elMoco View Post
'my' Slackware:

Code:
# distro
Name: Slackware 15.0 x86_64
Version: 15.0 (stable)
Codename: stable
Ah! Mine is 14.2. I'm not switching to Slackware 15 until it's released. But thanks for clearing up the confusion.

PS: Where does that distro command come from? I've never seen it before.

Last edited by hazel; 10-03-2021 at 09:05 AM.
 
Old 10-03-2021, 09:32 AM   #24
onebuck
Moderator
 
Registered: Jan 2005
Location: Central Florida 20 minutes from Disney World
Distribution: SlackwareŽ
Posts: 13,925
Blog Entries: 44

Rep: Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159
Member Response

Hi,

Quote:
Originally Posted by hazel View Post
Ah! Mine is 14.2. I'm not switching to Slackware 15 until it's released. But thanks for clearing up the confusion.

PS: Where does that distro command come from? I've never seen it before.
Hazel, I believe member has just a comment line to show distro.
 
Old 10-03-2021, 10:31 AM   #25
computersavvy
Senior Member
 
Registered: Aug 2016
Posts: 3,345

Rep: Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484
Hazel,
My system is Fedora 34.

The differences just go to show that even the commonly used tools get updated and (usually) improve over time.
 
Old 10-03-2021, 12:49 PM   #26
elMoco
Member
 
Registered: Jul 2010
Distribution: Slackware
Posts: 45

Rep: Reputation: 11
Quote:
Originally Posted by hazel View Post
Ah! Mine is 14.2. I'm not switching to Slackware 15 until it's released. But thanks for clearing up the confusion.

PS: Where does that distro command come from? I've never seen it before.
Code:
# which distro
/usr/bin/distro
#
# file /usr/bin/distro
/usr/bin/distro: Python script, ASCII text executable
#
# distro --help
usage: distro [-h] [--json]

OS distro info tool

optional arguments:
-h, --help  show this help message and exit
--json, -j  Output in machine readable format
#
Not sure if it was included in Slackware 14.2, but it is in the current tree.

Code:
Mon Feb 15 19:23:44 UTC 2021
(...)
l/python-distro-1.5.0-x86_64-4.txz: Rebuilt.
Code:
Sat Jan 4 22:21:30 UTC 2020
(...)
l/python-distro-1.4.0-x86_64-1.txz: Added.
       This is needed by hplip since Python 3.8 has removed the
       platform.linux_distribution function.
Cheers
 
Old 10-03-2021, 12:52 PM   #27
elMoco
Member
 
Registered: Jul 2010
Distribution: Slackware
Posts: 45

Rep: Reputation: 11
Quote:
Originally Posted by onebuck View Post
Hi,


Hazel, I believe member has just a comment line to show distro.

Not really, it's an actual app.
Code:
# which distro
/usr/bin/distro
#
# distro --help
usage: distro [-h] [--json]

OS distro info tool

optional arguments:
-h, --help  show this help message and exit
--json, -j  Output in machine readable format
#
# file /usr/bin/distro
/usr/bin/distro: Python script, ASCII text executable
#
Cheers
 
Old 10-03-2021, 03:05 PM   #28
onebuck
Moderator
 
Registered: Jan 2005
Location: Central Florida 20 minutes from Disney World
Distribution: SlackwareŽ
Posts: 13,925
Blog Entries: 44

Rep: Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159
Member Response

Hi,


I know that now! Thanks. I was not aware of the new python coded command, 'which distro';
Code:
~# which distro 
/usr/bin/distro
Code:
#!/usr/bin/python3 
# EASY-INSTALL-ENTRY-SCRIPT: 'distro==1.5.0','console_scripts','distro' 
import re 
import sys 

# for compatibility with easy_install; see #2198 
__requires__ = 'distro==1.5.0' 

try: 
    from importlib.metadata import distribution 
except ImportError: 
    try: 
        from importlib_metadata import distribution 
    except ImportError: 
        from pkg_resources import load_entry_point 


def importlib_load_entry_point(spec, group, name): 
    dist_name, _, _ = spec.partition('==') 
    matches = ( 
        entry_point 
        for entry_point in distribution(dist_name).entry_points 
        if entry_point.group == group and entry_point.name == name 
    ) 
    return next(matches).load() 


globals().setdefault('load_entry_point', importlib_load_entry_point) 


if __name__ == '__main__': 
    sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0]) 
    sys.exit(load_entry_point('distro==1.5.0', 'console_scripts', 'distro')())

 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Ghost is very basic. VERY BASIC LXer Syndicated Linux News 0 11-16-2013 08:41 AM
Basic Very Basic ? Helen Hatton Linux - Newbie 12 01-04-2009 03:57 PM
GnuCash, KMyMoney - basic, basic questions - please help if you can. brjoon1021 Linux - Software 3 10-20-2008 06:27 PM
I'm a BASIC chap, looking for some info on BASIC programming CragStar Programming 2 01-21-2001 09:19 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 03:25 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration