Getting quotes into an alias definition?
Adam Funk
a24061 at yahoo.com
Wed Oct 11 10:05:02 UTC 2006
On 2006-10-11, Erik Christiansen <erik at dd.nec.com.au> wrote:
> If your alias is amenable to the shell's expansion rule for "", then you
> can use '' where you really need it, and "" for the alias. (Well, it
> works for me. I haven't checked the manual. :-) e.g.
Hmmm and thanks! I tried this (working from the "renaming jpeg files"
thread):
$ alias jheadrename="jhead -nf'%Y%m%d-%H%M-%03i'"
$ alias jheadrename
alias jheadrename='jhead -nf'\''%Y%m%d-%H%M-%03i'\'''
Then tried both versions in ~/.bashrc and they both work (although the
first one gets translated into the second). So I think this means
that \' works *outside* of '...' and adjacent to it but not inside it.
More information about the ubuntu-users
mailing list