[TriLUG] Changing slashes to backslashes in prompt

Aaron Schrab via TriLUG trilug at trilug.org
Fri Apr 19 18:23:30 EDT 2019


At 18:07 -0400 19 Apr 2019, Mike Viscount via TriLUG <trilug at trilug.org> wrote:
>I use the ${} syntax often as it's good practice and often quotes also 
>to prevent weird things from happening ... but as far as needing to be 
>upper case inside them - don't think so ... just any variable and they 
>can be upper, lower, mixed, ... etc.

Yeah, I was just trying to differentiate there between PWD the 
environment variable and pwd the command. The contents of ${} can 
certainly be any variable (or even potential variable if set -u isn't 
being used), but the standard variables tend to be in all upper case.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 549 bytes
Desc: not available
URL: <http://www.trilug.org/pipermail/trilug/attachments/20190419/d2f193d6/attachment.pgp>


More information about the TriLUG mailing list