Comments (3)
@
,#
,^
,*
,-
,_
,+
,,
,.
,?
,{
,}
,[
,]
get saved. Permissible characters. Don't remove these.'
,"
don't get saved, but calling the alias with quotes in it preserves behavior as long as there are matching quotes within the alias. Can be handled if left in, or not.\
doesn't get saved, but if you call alias with\
the line it returns can be handled properly. Can be handled if left in, or not.!
,&
,(
,)
,=
,/
,:
,;
,<
,>
,|
break the normal alias command, so we can call those undefined behavior. Don't worry about these characters.$
substitutes in the variable that bash thinks follows $. This is a problem.
Strategy: stop sanitizing, it's fine. The only problem is substituting in variable names.
EDIT: It's actually not a problem. If someone wants a $ in their alias, they need to quote it.
from myaliases.
And alias doesn't allow $ signs in nickname, I think.
"The characters /
, $
, `, =
and any of the shell metacharacters or quoting characters listed above may not appear in an alias name." (according to the manual?)
So alias 'hi$bro'='desk'
won't work.
from myaliases.
Yeah, I think the only thing that we might need to worry about are variable substitutions.
from myaliases.
Related Issues (20)
- options HOT 6
- Reran install script and .included gave me this HOT 2
- cds - too many file descriptors? HOT 3
- wiki better m8 HOT 1
- cds tab complete shell conditional agh HOT 2
- add guidance about setup/install to wiki
- document git and hg and grep
- prepending .included line into .bash_aliases HOT 7
- comments in cds command
- unalias for altalias? HOT 1
- double slashes in cds tab completion HOT 3
- alias in alias command
- test suite HOT 3
- Setup script's jank on an RPI HOT 6
- Setup script should finish off by sourcing HOT 1
- Somehow enforce make
- some ideas
- cds - is not portable
- wsl open cmd overrides default open cmd HOT 2
- WSL 2 alternative to SFTP Net Drive using SSHFS HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from myaliases.