Discussion
Loading...

Post

  • About
  • Code of conduct
  • Privacy
  • Users
  • Instances
  • About Bonfire
xinqu
@xinqu@mastodon.bsd.cafe  ·  activity timestamp 2 months ago

I think I will start reading man <a href="/hashtag/01JYW1B6DPPK1YX36V5M55ZS8J">#<span>bash</span></a> line by line, there are so many features I didn't know about. For example:

You can use an alias as a parameter to an alias. E.g.:

alias lsopts='-lrt'
alias myls='ls '

"myls" executes "ls -lrt". To make that work, you have to append a space ' ' at the end of the myls definition.

There are better use cases for this, of course, this is just a test. If you ommit the ' ' after 'ls', myls lsopts returns "lsopts: No such file...."

  • Copy link
  • Flag this post
  • Block
Log in

bonfire.cafe

A space for Bonfire maintainers and contributors to communicate

bonfire.cafe: About · Code of conduct · Privacy · Users · Instances
Bonfire social · 1.0.0-rc.3.13 no JS en
Automatic federation enabled
  • Explore
  • About
  • Members
  • Code of Conduct
Home
Login