User avatar
nixCraft 🐧 @nixCraft@mastodon.social
2y
Quiz: How do you print the value of the $PWD shell variable in or ? Choose one answer only.
27
1
0
0
User avatar
Dimitris Nakos, MSc @nakdim@mathstodon.xyz
2y
@nixCraft why not just $pwd? :P
1
0
0
0
User avatar
🪨 @Varpie@peculiar.florist
2y
@nakdim @nixCraft Because it will try to execute the value of $pwd. Which in some shells will try to go to that path, thus doing nothing because you're already there, and in others will fail because it isn't a valid command (I believe, haven't tested that)
⭐2
0
0
0
2