Leave a comment when voting down..

if [ "${vote}" = "down" ]; then echo leave comment; fi
I think it would be wise if anyone voting down left a comment indicating the reason for that action. Don't keep it to yourself. Thanks.
Sample Output
I voted down because <reason_for_voting_down>

-10
2009-03-20 00:31:13

What Others Think

Let me be the first to vote it down then. 1) This site is not for political step stools for your opinions. 2) This site is built as a repository of those golden commands that only the gurus know, but are willing to share. 3) Your command is not syntactically correct. You forgot your semicolon. 4) Backticks suck. $() is the way of the Jedi. 5) Leave isn't installed on my system.
atoponce · 645 weeks and 6 days ago
Focus your energies on getting the site developers to implement tags,categories, intended audience, etc and this thing could explode (Rails, VI, IOS, EMACS, Shell, SQL, jquery, etc, etc)
vaporub · 645 weeks and 5 days ago
Good call, koukos (shame about the syntax :-) Fortunately, most of the people likely to vote down will have read your comment.
flatcap · 645 weeks and 5 days ago
Syntax errors! :-) Need a space after the "[", before the "]", and a ";" after the "]". Also, it's better to place variables in ${} and quotes. The ${vote} should be quoted "${vote}" in case it is NULL (or an empty string). Use $() instead of `` because backticks are hard to read while $() can be nested (if needed). However, the `leave comment` here is an error because it would be replaced by the result of executing "leave command" which was probably not intended. if [ "${vote}" = "down" ]; then echo leave comment; fi I agree it may be instructive if people leave comments but I also think it is better that they are free not to leave comments if they do not wish to. if [ "${vote}" = "down" ]; then echo leave downer comment; else echo leave jolly rantings; fi
mpb · 645 weeks and 5 days ago
hahaha, I think writing the command wrong did the trick :P I don't think I'm forcing anyone to write comments, I think I was polite enough and tried to move them to do so.
JesusSuperstar · 645 weeks and 5 days ago
atoponce: Thanks to you, I wish there was an option to vote comments up.
cards · 645 weeks and 5 days ago
We can see so many commands here from this link and students can learn it easily by following these cheap real diamond rings kinds of online sites. This Particular post specifies details regarding leaving a comment when voting down. Looking here for more such commands from here.
Alyssalauren · 13 weeks and 5 days ago
Nice post for the user who want to download the free images for your whats app status. https://statusarena.in/sad-status/
Munna123 · 9 weeks and 3 days ago
It is really a good site to follow as they always discuss about the computer-related things and here we can see they have shared a code that leave a comment when voting down so hopefully it will be helpful One For The programmers commercial audio visual
Dwyane · 2 weeks and 1 day ago

What do you think?

Any thoughts on this command? Does it work on your machine? Can you do the same thing with only 14 characters?

You must be signed in to comment.

What's this?

commandlinefu.com is the place to record those command-line gems that you return to again and again. That way others can gain from your CLI wisdom and you from theirs too. All commands can be commented on, discussed and voted up or down.

Share Your Commands



Stay in the loop…

Follow the Tweets.

Every new command is wrapped in a tweet and posted to Twitter. Following the stream is a great way of staying abreast of the latest commands. For the more discerning, there are Twitter accounts for commands that get a minimum of 3 and 10 votes - that way only the great commands get tweeted.

» http://twitter.com/commandlinefu
» http://twitter.com/commandlinefu3
» http://twitter.com/commandlinefu10

Subscribe to the feeds.

Use your favourite RSS aggregator to stay in touch with the latest commands. There are feeds mirroring the 3 Twitter streams as well as for virtually every other subset (users, tags, functions,…):

Subscribe to the feed for: