You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When we pass in an empty string it should treat it as if there are no arguments. I have this issue since I have a custom alias that is like this:
functions() {
z "$1"
ls
}
(I call it s because if I called it z it would lead to stack overflow)
So it works as expected - changing directory will show me what is inside of that directory. However it won't work when we input an empty string, as it will receive z "" which doesn't work
It would be nicer if z "" would by default change to home directory. And I have to resort to this for now:
functions() {
z $1# Does not follow best practices
e
}
The text was updated successfully, but these errors were encountered:
When we pass in an empty string it should treat it as if there are no arguments. I have this issue since I have a custom alias that is like this:
(I call it
s
because if I called itz
it would lead to stack overflow)So it works as expected - changing directory will show me what is inside of that directory. However it won't work when we input an empty string, as it will receive
z ""
which doesn't workIt would be nicer if
z ""
would by default change to home directory. And I have to resort to this for now:The text was updated successfully, but these errors were encountered: