LinuxQuestions.org
Help answer threads with 0 replies.
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 03-08-2017, 06:31 AM   #16
briselec
Member
 
Registered: Jun 2013
Location: Ipswich, Australia
Distribution: Slackware
Posts: 74

Original Poster
Rep: Reputation: Disabled

Quote:
Originally Posted by smallpond View Post
The kernel has a very strict policy of maintaining binary compatibility with previous versions.
And?? What does that got to do with it. I was pointing out the absurdity of the notion of never modifying/improving any existing software because it might break things.

By the way - that's external binary compatibility. Internal compatibility gets broken all the time.
 
Old 03-08-2017, 06:44 AM   #17
GazL
LQ Veteran
 
Registered: May 2008
Posts: 6,897

Rep: Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019
There's also eu-strings from the efiutils package, so that's actually 3 versions.

Both efi-utils and gnu versions include support for BSD's '-o' option (which the POSIX standard abandoned in favour of using '-t[dox]' due to inconsistent use of '-o' by different vendors).

Unfortunately, it seems that bsd went for a zero padding decimal on the location offset, while the other two went for space padding octal:

Code:
test@ws1:/usr/bin$ strings-GNU /tmp/file.txt 
this is a string.
and so is this.
test@ws1:/usr/bin$ strings-GNU -o /tmp/file.txt 
      0 this is a string.
     22 and so is this.
test@ws1:/usr/bin$ strings -o /tmp/file.txt 
0000000 this is a string.
0000018 and so is this.
test@ws1:/usr/bin$ eu-strings -o /tmp/file.txt 
      0 this is a string.
     22 and so is this.
test@ws1:/usr/bin$
As the bsd version doesn't conform to the POSIX standard (support '-t') I'd rather see one of the other versions being the default. I'd be interested to know what changing it would break, if anything.


afterthought: As the convention for octal representation is traditionally to include a leading zero, I guess all 3 got it wrong.

Last edited by GazL; 03-08-2017 at 07:04 AM. Reason: correction.
 
Old 03-08-2017, 06:49 AM   #18
drmozes
Slackware Contributor
 
Registered: Apr 2008
Distribution: Slackware
Posts: 1,540

Rep: Reputation: 1309Reputation: 1309Reputation: 1309Reputation: 1309Reputation: 1309Reputation: 1309Reputation: 1309Reputation: 1309Reputation: 1309Reputation: 1309
Quote:
Originally Posted by briselec View Post
I don't get what point you're trying to make but if you have a look at the FreeBSD manpage for strings it looks a lot like the strings-GNU version.
Aha, indeed it has improved somewhat:-

https://svnweb.freebsd.org/base/rele...chain/strings/

Quote:
Define "it works". I want to be able to tell it which character encoding to use for finding strings. I want it to give me offsets in hex. So for me it does not "work".
Defined as 'continues to work in the fashion in which it was originally intended'.

I would define your requirement as 'does not do what I want it to do / not fit for your purpose'.

Quote:

What?? I was talking about adding functionality to the bsdstrings version without breaking existing usage. I'm not sure what you thought I was proposing.
Ah I see what you mean. Since strings-GNU already has the options you want, to me you'd adjust that version to be BSD strings compatible rather than the other way around.

I thought that the better option would be to upgrade to the new BSD strings, but looking at the man page for the latest BSD strings, they already broke the compatibility with the -o operator I used as an example from the BSD strings in Slackware; in which case you may as well just ditch BSD strings (or at least rename it to strings-BSD) and switch to the GNU version which works in the same way as the new BSD version.

I'll point Patrick to this thread.
 
Old 03-08-2017, 06:49 AM   #19
montagdude
Senior Member
 
Registered: Apr 2016
Distribution: Slackware
Posts: 2,011

Rep: Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619
Quote:
Originally Posted by briselec View Post
A version I didn't know was there because someone, without consulting me, decided I get the crippled one by default.
Sorry, I just can't help but laugh at the notion that Pat should consult some random guy before making decisions about Slackware.

(Not that your complaint about the default strings program is unwarranted or anything -- I have no opinion about that -- just that your phrasing there is humorous.)

Last edited by montagdude; 03-08-2017 at 06:52 AM.
 
Old 03-08-2017, 06:56 AM   #20
briselec
Member
 
Registered: Jun 2013
Location: Ipswich, Australia
Distribution: Slackware
Posts: 74

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by montagdude View Post
Sorry, I just can't help but laugh at the notion that Pat should consult some random guy before making decisions about Slackware.

(Not that your complaint about the default strings program is unwarranted or anything -- I have no opinion about that -- just that your phrasing there is humorous.)
The real reason for the long time between Slackware releases
 
Old 03-08-2017, 07:29 AM   #21
willysr
Senior Member
 
Registered: Jul 2004
Location: Jogja, Indonesia
Distribution: Slackware-Current
Posts: 4,661

Rep: Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784
Quote:
Originally Posted by briselec View Post
The real reason for the long time between Slackware releases
Perhaps that's the reason why Slackware still exists until today, while other distro is struggling to survive
Every release is well tested until it's considered ready for public.
 
1 members found this post helpful.
  


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
replace strings in a file using strings from another file xpto09 Linux - Newbie 3 01-28-2016 06:11 PM
BASH: replace strings in on file by the strings in another one cristalp Programming 5 10-28-2011 09:47 AM
[SOLVED] Searching and replacing strings in a file with strings in other files xndd Linux - Newbie 16 07-29-2010 02:40 PM
how to find duplicate strings in vertical column of strings markhod Programming 7 11-02-2005 04:04 AM
How to provide root passwds in programs as strings skie_knite007 Programming 1 10-01-2005 09:54 AM

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

All times are GMT -5. The time now is 07:11 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