Wednesday, May 1, 2024
 Popular · Latest · Hot · Upcoming
13
rated 0 times [  13] [ 0]  / answers: 1 / hits: 19270  / 1 Year ago, fri, may 26, 2023, 12:51:05

I tried doing that with export and set env, but it did not work. how to do it?



for example



~/directory$ export a.home=1 
bash: export: `a.home=1': not a valid identifier

More From » bash

 Answers
0

The dot is not a valid character in a shell identifier.

So the answer is "you cannot do what you ask":




   name   A word consisting only of  alphanumeric  characters  and  under-
scores, and beginning with an alphabetic character or an under-
score. Also referred to as an identifier.


[#43093] Friday, May 26, 2023, 1 Year  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
entmpy

Total Points: 52
Total Questions: 112
Total Answers: 113

Location: Marshall Islands
Member since Tue, Sep 21, 2021
3 Years ago
entmpy questions
;