Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > gnu.bash.bug > #14729
| From | Robert Elz <kre@munnari.OZ.AU> |
|---|---|
| Newsgroups | gnu.bash.bug |
| Subject | Re: GNU Bash v.4.4.23-5 built-in function 'set' produces variable outputs |
| Date | 2018-10-23 14:06 +0700 |
| Message-ID | <mailman.2607.1540278485.1284.bug-bash@gnu.org> (permalink) |
| References | <20181022133719.g4wc7uuowwfffzv3@eeg.ccf.org> <CAMu=Brp3q_-GV2j7R+hbXZX8LLakhQGd1O0y64q0xB2UBRRO6g@mail.gmail.com> <CAM_8-CiC=2-wY+y9GpRutzuOhom3q5ayS54sdH=F_w106WMj4Q@mail.gmail.com> <20181019195026.mmtktfswn3evxvlw@eeg.ccf.org> <10646.1540187682@jinx.noi.kre.to> |
Date: Mon, 22 Oct 2018 09:37:19 -0400
From: Greg Wooledge <wooledg@eeg.ccf.org>
Message-ID: <20181022133719.g4wc7uuowwfffzv3@eeg.ccf.org>
| I occasionally run a command like mkdir /tmp/x && cd "$_"
cdnd()
{
mkdir -p "$1" && cd "$1"
}
Make it as fancy as you want. Interactively you're much more
likely to want !$ than $_ (I'd suggest infinitely more lijkely...)
kre
Back to gnu.bash.bug | Previous | Next | Find similar | Unroll thread
Re: GNU Bash v.4.4.23-5 built-in function 'set' produces variable outputs Robert Elz <kre@munnari.OZ.AU> - 2018-10-23 14:06 +0700
csiph-web