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

Breaks cd when using other languages #183

Closed
onilton opened this issue Jul 27, 2015 · 3 comments · Fixed by #263
Closed

Breaks cd when using other languages #183

onilton opened this issue Jul 27, 2015 · 3 comments · Fixed by #263
Labels

Comments

@onilton
Copy link

onilton commented Jul 27, 2015

I am using ubuntu 14.04 (in portuguese).

After install scm_breeze and sourcing it in my .bashrc, when I try to change to a dir I get:

user@mycomputer:~$ cd tdc/
bash: tdc/: É um diretório

(tdc: Is a directory)

When I change my system settings to use english, everything seems to work fine.

Running this cd in bash -X, i get:

user@mycomputer:~$ cd tdc/
+ exec_scmb_expand_args tdc/
++ scmb_expand_args tdc/
++ '[' tdc/ = --relative ']'
++ first=1
++ OLDIFS='     
'
++ IFS=' '
++ for arg in '"$@"'
++ [[ tdc/ =~ ^[0-9]{0,4}$ ]]
++ [[ tdc/ =~ ^[0-9]+-[0-9]+$ ]]
++ '[' 1 -eq 1 ']'
++ first=0
++ printf %s tdc/
++ IFS='    
'
++ sed -e 's/\([][|;()<>^ "'\'']\)/\\\1/g'
+ eval tdc/
++ tdc/
bash: tdc/: É um diretório
++ history -a

I am using the stock settings of scm_breeze, also I reset my .bashrc to stock settings.

@onilton
Copy link
Author

onilton commented Aug 24, 2015

Removing cd from the list of commands in .git.scmbrc, seems to "fix" the issue:

# Shell Command Wrapping
# ----------------------------------------------
# Expand numbered args for common shell commands
shell_command_wrapping_enabled="true"
# Here you can tweak the list of wrapped commands.
#scmb_wrapped_shell_commands="vim emacs gedit cat rm cp mv ln cd" # broken
scmb_wrapped_shell_commands="vim emacs gedit cat rm cp mv ln" # working
# Add numbered shortcuts to output of ls -l, just like 'git status'

This seems a regression (or a possible duplicate) of bugs #98 and #64 . (Maybe they were not really fixed after all?)

@ghthor
Copy link
Member

ghthor commented Aug 31, 2018

@HaleTom Will your #255 fixes help here?

@ghthor ghthor added the bug label Aug 31, 2018
@HaleTom
Copy link
Collaborator

HaleTom commented Sep 1, 2018

@ghthor I hope so...

@onilton can you show how to:

  1. Set language to English
  2. That it works
  3. Set another language
  4. That it now fails

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

Successfully merging a pull request may close this issue.

3 participants