• Skip to main content
  • Skip to search
  • Skip to footer
Cadence Home
  • This search text may be transcribed, used, stored, or accessed by our third-party service providers per our Cookie Policy and Privacy Policy.

  1. Community Forums
  2. Custom IC SKILL
  3. env() or getShellEnvVar()

Stats

  • Locked Locked
  • Replies 1
  • Subscribers 142
  • Views 8102
  • Members are here 0
This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

env() or getShellEnvVar()

ebecheto
ebecheto over 3 years ago

Hi all,

by curiosity i typed env("HOME") instead of getShellEnvVar("HOME"), because it is shorter to write and might help readability of my code.

Although, i cannot find any help on the env() function, so i am wondering if this function is valid and if it is safe to use it.

Anyone knows something about env function ?

Regards,

  • Cancel
  • Andrew Beckett
    Andrew Beckett over 3 years ago

    I checked in our SKILL registration database and it's marked as public but with an "override" to not document it. I think that's because it's for legacy. There are some downside:

    1. It's an nlambda function which means you can't use it in SKILL++ mode (this suggests that it's very old)
    2. Because it's an nlambda function, you can't pass a variable containing the env var name to the function - it only takes a literal string or symbol as the first argument.

    So I think it's a conscious decision not to document it to discourage usage. 

    Andrew

    • Cancel
    • Vote Up +1 Vote Down
    • Cancel

Community Guidelines

The Cadence Design Communities support Cadence users and technologists interacting to exchange ideas, news, technical information, and best practices to solve problems and get the most from Cadence technology. The community is open to everyone, and to provide the most value, we require participants to follow our Community Guidelines that facilitate a quality exchange of ideas and information. By accessing, contributing, using or downloading any materials from the site, you agree to be bound by the full Community Guidelines.

© 2025 Cadence Design Systems, Inc. All Rights Reserved.

  • Terms of Use
  • Privacy
  • Cookie Policy
  • US Trademarks
  • Do Not Sell or Share My Personal Information