BTS

Issue1938

Title Zsh: fix for cd()
Priority bug Status chatting
Superseder Nosy List Xk2c, ft
Assigned To ft Topics has patch, zsh

Created on 2015-10-21.20:08:50 by Xk2c, last changed 2015-10-29.23:21:04 by mika.

Files
File name Uploaded Type Edit Remove
0001-fixed-cd.patch Xk2c, 2015-10-21.20:08:50 text/x-diff
Messages
msg5590 (view) Author: Xk2c Date: 2015-10-21.20:13:52
Thilo Six schrieb/wrote:

> Hello
> 
> The old cd() had several shortcommings:
>  * it broke 'cd -'
>  * did hide cds exit status
> 
> This patch fixes those, without losing the ability to cd to a files residence.
> The advantage of this version is we allways use builtin cd (please note cd is
> used often in random scripts) and *only* when that returns error we do clever
> things.
> This patch also restores cds original exit status.

PS.
Vertically aligning the message for the user is a matter of taste.
Personally i find i mutch easier to see that way what has actually changed.
But i do not insist on that. Its up to you.


> kind regards,
> 
>      Thilo
> 
> ----------
> files: 0001-fixed-cd.patch
> messages: 5589
> nosy: Xk2c
> priority: bug
> status: unread
> title: Zsh: fix for cd()
> topic: has patch, zsh
> 
> _____________________________________
> GRML issue tracker <bts@bts.grml.org>
> <http://bts.grml.org/grml/issue1938>
> _____________________________________
>
msg5589 (view) Author: Xk2c Date: 2015-10-21.20:08:50
Hello

The old cd() had several shortcommings:
 * it broke 'cd -'
 * did hide cds exit status

This patch fixes those, without losing the ability to cd to a files residence.
The advantage of this version is we allways use builtin cd (please note cd is
used often in random scripts) and *only* when that returns error we do clever
things.
This patch also restores cds original exit status.


kind regards,

     Thilo
History
Date User Action Args
2015-10-29 23:21:04mikasetassignedto: ft
nosy: + ft
2015-10-21 20:13:52Xk2csetstatus: unread -> chatting
messages: + msg5590
2015-10-21 20:08:50Xk2ccreate