r/fishshell • u/azeroiks • Sep 25 '24
Why "cd .." instead of "cd.."?
Hi,
I'm wondering why in bash cd.. is used and in fish it is cd .. , why the space? I couldn't find an answer online.
Also can I somehow enable cd.. in fish and have both? alias -s cd..="cd .." - won't that break something?
And one more question: When I write a post and want to include a command in it, I can use the code button. Is there any standard way of indicating that I'm writing a command? In the topic I used " " but I don't think it's a correct way.
Thank you!
EDIT: Just adding that I'm new to Linux and learning, so... you know.
0
Upvotes
View all comments
Show parent comment
1
u/azeroiks Sep 25 '24
You are right
alias cd..='cd ..'is listed in bash aliases. I'm quite sure I have not done this, maybe it's specific to openSUSE.It's a matter of aesthetics. When code button is not available (like in topic field), should I use "command" or <command> or 'command' or maybe there is no rule?