This is really confusing...
I currently have a Debian 8 computer, and I connect to it using PuTTY (SSH).
The default console used is Bash.
When I try to pass a path to an alias, it gives the following error:
-bash: /: Is a directory
Here is an example:
Also, there's a bizarre behaviour: running '/'
or "/"
cause the same error, as if Bash were ignoring quotes.
If it matters, the alias explorer
was defined like this:
alias explorer='pcmanfm 1>/dev/null 2>&1 &'
Is this the expected behaviour?
If not, what am I doing wrong?
'/'
? – marcelm Jun 24 '16 at 22:00/
(similar toecho
). – Ismael Miguel Jun 24 '16 at 22:11/
would be inconsistent with anything else bash does. Try comparing the results of entering'garply'
,'ls'
,'/bin/ls'
,'/bin'
and'/'
? Also try them without the quotes; why would the quotes change the result? – marcelm Jun 24 '16 at 23:01