3 ms·
Except with CDPATH the `cd` is usually not an alias. Even `/usr/bin/cd` is aware of CDPATH. It's a bug in the script, just like reacting badly to $IFS or $LANG
by kubanczyk 7y ago
Except with CDPATH the `cd` is usually not an alias. Even `/usr/bin/cd` is aware of CDPATH.
It's a bug in the script, just like reacting badly to $IFS or $LANG.
- sigjuice 7y agoWhat is /usr/bin/cd for? cd is supposed to be a shell built-in, because running /usr/bin/cd will make another process and that cannot change the current working directory of the shell you are in. EDIT: $ cat /usr/bin/cd #!/usr/bin/sh builtin cd "$@"
- saagarjha 7y agoLook, it's 'cperciva! $ cat /usr/bin/cd #!/bin/sh # $FreeBSD: src/usr.bin/alias/generic.sh,v 1.2 2005/10/24 22:32:19 cperciva Exp $ # This file is in the public domain. builtin `echo ${0##*/} | tr \[:upper:] \[:lower:]` ${1+"$@"}