isacikgoz / tldr

fast and interactive tldr client written with go

Home Page:https://isacikgoz.me/tldr/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Not work command when input parameter

KScaesar opened this issue · comments

My English is not good, so use bash content to explain my problem

Not work

caesar@caesar-VirtualBox:~/go/bin 
$ ./tldr ps

ps

Information about running processes.

  Search for a process that matches a string
   ps aux | grep string

$ string -> go
? ps aux | grep go Yes
error: garbage option

Usage:
 ps [options]

 Try 'ps --help <simple|list|output|threads|misc|all>'
  or 'ps --help <s|l|o|t|m|a>'
 for additional help text.

For more details see ps(1).
exit status 1

OK work

caesar@caesar-VirtualBox:~/go/bin 
$ ps aux | grep go
caesar    1055  0.0  0.0  21540  1060 pts/5    S+   16:43   0:00 grep --color=auto go
caesar   31092  0.0  0.4 782004 32732 ?        Sl   16:36   0:00 /usr/lib/gnome-online-accounts/goa-daemon
caesar   31102  0.0  0.1 319876 10168 ?        Sl   16:36   0:00 /usr/lib/gnome-online-accounts/goa-identity-service
caesar   31146  0.0  0.0 274220  6124 ?        Ssl  16:36   0:00 /usr/lib/gvfs/gvfs-goa-volume-monitor

Thanks for the feedback @Min-Feng, it seems like this is an error of using |. I can add a fix for this subject but it will make it to the next release.

I've just fixed it and it's merged to master. Please let me know if you still the issue. Also, feel free to open a new issue.