MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/PowerShell/comments/r3wcv4/bash_vs_powershell_cheat_sheet/hmfurnw/?context=3
r/PowerShell • u/[deleted] • Nov 28 '21
17 comments sorted by
View all comments
5
This is not how you concatenate strings in bash. Also, you don't use double quotes on the variables during echo, which is advised.
And how come you're using normal intendation on the powershell code, but potato-intendation on the bash code? Any particular reason?
And why do you create the "make directory" in bash inside of a subshell, but in the powershell code you create it in the same process?
I mean, your article is a quick and dirty starting point, sure. Better than nothing.
But for publication to the rest of the world it's apparent that you have to polish it... a lot.
2 u/BlackV Nov 28 '21 you talking about`mkdir $newdir`it think the back ticks were editor leftovers 2 u/[deleted] Nov 28 '21 I don't think so. 2 u/BlackV Nov 28 '21 So what did you mean by new sub shell/same process then? 0 u/[deleted] Nov 28 '21 I meant a subshell. Like you understood it correctly the first time.
2
you talking about
`mkdir $newdir`
it think the back ticks were editor leftovers
2 u/[deleted] Nov 28 '21 I don't think so. 2 u/BlackV Nov 28 '21 So what did you mean by new sub shell/same process then? 0 u/[deleted] Nov 28 '21 I meant a subshell. Like you understood it correctly the first time.
I don't think so.
2 u/BlackV Nov 28 '21 So what did you mean by new sub shell/same process then? 0 u/[deleted] Nov 28 '21 I meant a subshell. Like you understood it correctly the first time.
So what did you mean by new sub shell/same process then?
0 u/[deleted] Nov 28 '21 I meant a subshell. Like you understood it correctly the first time.
0
I meant a subshell. Like you understood it correctly the first time.
5
u/[deleted] Nov 28 '21
This is not how you concatenate strings in bash. Also, you don't use double quotes on the variables during echo, which is advised.
And how come you're using normal intendation on the powershell code, but potato-intendation on the bash code? Any particular reason?
And why do you create the "make directory" in bash inside of a subshell, but in the powershell code you create it in the same process?
I mean, your article is a quick and dirty starting point, sure. Better than nothing.
But for publication to the rest of the world it's apparent that you have to polish it... a lot.