PREV INDEX NEXT

Author: Stan Eisenstat
Subject: Re: [Cs323] Escape char
Date: Thursday, 15 Oct 2020, 21:41:01


    > Message Posted By: Unknown
    >
    > [...@cricket hw3]$ /c/cs323/Hwk3/mcBash
    > (1)$ ${\sdf}
    > Invalid expansion
    > (1)$ ${sdf}
    > >>
    > Hi, could you explain the difference?
    > I thought \ will escape the following character?

mcBash follows the lead of bash:

  $ echo ${\HOME}
  bash: ${\HOME}: bad substitution
  $ echo ${HOME}
  /home/accts/sce

(the echo is used to print the value rather than try to
execute it).

--Stan-
PREV INDEX NEXT