Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cd bd p from the examples does not work for me #40

Open
fethomm opened this issue Aug 12, 2017 · 4 comments
Open

cd bd p from the examples does not work for me #40

fethomm opened this issue Aug 12, 2017 · 4 comments

Comments

@fethomm
Copy link

fethomm commented Aug 12, 2017

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

@fethomm fethomm changed the title ls bd p from the examples does not work cd bd p from the examples does not work Aug 12, 2017
@fethomm fethomm changed the title cd bd p from the examples does not work cd bd p from the examples does not work for me Aug 12, 2017
@rautamiekka
Copy link

rautamiekka commented Aug 12, 2017

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).

@fethomm
Copy link
Author

fethomm commented Aug 12, 2017 via email

@rautamiekka
Copy link

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.

@fethomm
Copy link
Author

fethomm commented Aug 12, 2017 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants