News for hackers. Stuff that matters.
Re:Argbash: Bash argument parsing code generator by dataflow on Tuesday March 22, 2022 @07:28PM (#30772954)
> There’s nothing complicated, oblique, or arcane, about short options - if one is versed in Unix.

Need to list a directory reversively?

  ls -R
Need to list a directory in reverse?

  ls -r
Need to sort a list in reverse?

  sort -r
Need to grep recursively?

  grep -r
Need to copy recursively?

  cp -R
  cp -r  # obsolete!
Definitely not confusing!
Re:Argbash: Bash argument parsing code generator by cyberdelica on Wednesday March 23, 2022 @01:56PM (#30781308)
> Definitely not confusing!

Heh, well... I never said it wasn’t confusing. I agree with you on the above.

If the Unix Philosophy was being properly followed, with your ls example, as a case in point, I would use:

    ls | tac | column
Now, that’s not even considering the ridiculousness of the naming of the “tac” command, which would ideally be renamed “rev” - with rev ideally being expanded, to to ALL reversals, not just character based, per line.

The sort of nonsense above, is why I started writing my own core utils and OS from scratch - which I suppose is a sort of suckless meme, by now.

POSIX, is both a blessing, and a curse.

Re:Argbash: Bash argument parsing code generator by ramses0 on Wednesday March 23, 2022 @01:02PM (#30780640)
Thank you, I was trying not to feed the trolls. ;-)

http://www.robertames.com/blog.cgi/entries/the-unix-way-comm...

...I link to some good references that I found w.r.t. command line options which was a useful baseline even for looking at what options your command may try to support.

Re:Argbash: Bash argument parsing code generator by cyberdelica on Wednesday March 23, 2022 @01:58PM (#30781336)
> Thank you, I was trying not to feed the trolls. ;-)

Who’s the troll? Your comment is probably out of line with site guidelines mate. Please report yourself to the admins, for attitude realignment.