cd `bd p` from the examples does not work for me
bd works fine for me on debian unstable other than cd bd p from the examples. It gives me this error:
devil@siductionbox:~/work/Linux-User/CD-Helferlein/Screenies$ cd bd p /Todo
(where ToDo is a sub-dir of work)
bash: cd: Zu viele Argumente.
which translates to:
bash: cd: too many arguments
Any idea what might be the reason for that? Let me know if you need any more info
It's simpler than it looks: you're introducing a syntax error, and given you're not using the GitHub code tag correctly it makes it even more confusing.
Run this:
cd `bd p`/Todo
, not this:
cd `bd p` /Todo
Or better yet, run this:
cd $(bd p)/Todo
, but it could be specific to Bash (Bourne Again Shell).
Thanks for coming back to me so quickly. I tried your 2 commands and they give me the same output as before:
devil@siductionbox:~/work/Linux-User/CD-Helferlein/Screenies$ cd $(bd p)/Todo
bash: cd: Zu viele Argumente.
devil@siductionbox:~/work/Linux-User/CD-Helferlein/Screenies$ cd bd p /Todo
bash: cd: Zu viele Argumente.
Jouni Järvinen [email protected] hat am 12. August 2017 um 20:58 geschrieben:
It's simpler than it looks: you're introducing a syntax error, and given you're not using the GitHub code tag correctly it makes it even more confusing.
Run this:
cd `bd p`/Todo, not this:
cd `bd p` /TodoOr better yet, run this:
cd $(bd p)/Todo-- You are receiving this because you authored the thread. Reply to this email directly or view it on GitHub: https://github.com/vigneshwaranr/bd/issues/40#issuecomment-321999488
devil@siductionbox:~/work/Linux-User/CD-Helferlein/Screenies$ cd
bd p/Todo
You're still adding a space before the slash, which is a syntax error in this case.
Anyway, getting 'Too many arguments' means you're providing more than 1 target folders. Run
echo $(bd p)/Todo and show the output.
Actualy the name is ToDo, but that does not work either.
devil@siductionbox:~/work/Linux-User/CD-Helferlein/Screenies$ echo $(bd p)/ToDo No such occurrence./ToDo devil@siductionbox:~/work/Linux-User/CD-Helferlein/Screenies$ cd ../../../ devil@siductionbox:~/work$ ls Charleston Golem jhr.asc LinuxCon Linux-User mikap_buch.txt.tar.gz notebook.zim Pro-Linux Sync ToDo.txt Desktop Home Joomla-Doc Linux Magazin mikap_buch.txt nixCraft PC-Mag%2fLinixLife Pro-Linux.txt ToDo XModulo
So ToDo does exist in work. No idea what is wrong here.
Jouni Järvinen [email protected] hat am 12. August 2017 um 21:57 geschrieben:
devil@siductionbox:~/work/Linux-User/CD-Helferlein/Screenies$ cd
bd p/TodoYou're still adding a space before the slash, which is a syntax error in this case.
Anyway, getting 'Too many arguments' means you're providing more than 1 target folders. Run
echo $(bd p)/Todoand show the output.-- You are receiving this because you authored the thread. Reply to this email directly or view it on GitHub: https://github.com/vigneshwaranr/bd/issues/40#issuecomment-322002406