I have a concern regarding "Yes". I find it a bad idea to use this since what if you encounter a new tool? Maybe you install something and Yes makes it install, or maybe skip, dependencies that's crucial to have/not have in the project
I've been a professional C, Perl, PHP and Python developer.
I'm an ex-sysadmin from the late 20th century.
These days I do more Javascript and CSS and whatnot, and promote UX and accessibility.
If you're particularly concerned about it doing something you don't want, you can use an expect script instead. It's kind of like selenium for the command line.
Yup, you are right. yes program may do unexpected thing, but sometimes you do know the script very well and you know all the questions.
Maybe I should change the example and add some warning
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Working with drush, the last one is very neat!
I have a concern regarding "Yes". I find it a bad idea to use this since what if you encounter a new tool? Maybe you install something and Yes makes it install, or maybe skip, dependencies that's crucial to have/not have in the project
(Vague example scenario, but you get the point!)
A lot of commands take a
-y
flag too.If you're particularly concerned about it doing something you don't want, you can use an
expect
script instead. It's kind of like selenium for the command line.Yep! I tend to use the y flag.
Thanks, PatricNox! I've added little warning in the post
Yup, you are right.
yes
program may do unexpected thing, but sometimes you do know the script very well and you know all the questions.Maybe I should change the example and add some warning